@ SuppressWarnings ( "unchecked" ) private void writeNSDecls ( ) throws SAXException { Enumeration < String > prefixes = ( Enumeration < String > ) nsSupport . getDeclaredPrefixes ( ) ; while ( prefixes . hasMoreElements ( ) ) { String prefix = ( String ) prefixes . nextElement ( ) ; String uri = nsSupport . getURI ( prefix ) ; if ( uri == null ) { uri = "" ; } write ( ' ' ) ; if ( "" . equals ( prefix ) ) { write ( "xmlns=\"" ) ; } else { write ( "xmlns:" ) ; write ( prefix ) ; write ( "=\"" ) ; } writeEscUTF16 ( uri , 0 , uri . length ( ) , true ) ; write ( ' ' ) ; } }
Write out the list of Namespace declarations .