RTEditor/src/main/java/com/onegravity/rteditor/converter/tagsoup/HTMLWriter.java
@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('\"');
        }
    }
@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('\"');
        }
    }
@ 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.

@throws org.xml.sax.SAXException This method will throw an IOException wrapped in a
SAXException if there is an error writing the Namespace
declarations.
Write out the list of Namespace declarations .