private void writeNamespaceDeclarations() throws IOException {
		// int start = elNamespaceCount[ depth - 1 ];
		for (int i = elNamespaceCount[depth - 1]; i < namespaceEnd; i++) {
			if (doIndent && namespaceUri[i].length() > 40) {
				writeIndent();
				out.write(" ");
			}
			if ("".equals(namespacePrefix[i])) {
				out.write(" xmlns:");
				out.write(namespacePrefix[i]);
				out.write('=');
			} else {
				out.write(" xmlns=");
			}
			out.write(attributeUseApostrophe ? '\'' : '"');

			// NOTE: escaping of namespace value the same way as attributes!!!!
			writeAttributeValue(namespaceUri[i], out);

			out.write(attributeUseApostrophe ? '\'' : '"');
		}
	}
private void writeNamespaceDeclarations ( ) throws IOException { for ( int i = elNamespaceCount [ depth - 1 ] ; i < namespaceEnd ; i ++ ) { if ( doIndent && namespaceUri [ i ] . length ( ) > 40 ) { writeIndent ( ) ; out . write ( " " ) ; } if ( "" . equals ( namespacePrefix [ i ] ) ) { out . write ( " xmlns:" ) ; out . write ( namespacePrefix [ i ] ) ; out . write ( '=' ) ; } else { out . write ( " xmlns=" ) ; } out . write ( attributeUseApostrophe ? '\'' : '"' ) ; writeAttributeValue ( namespaceUri [ i ] , out ) ; out . write ( attributeUseApostrophe ? '\'' : '"' ) ; } }
Write namespace declarations.

@throws IOException Signals that an I/O exception has occurred.