public void writeToWriter ( Element elem , Writer writer ) throws IOException { xmlOutputter . setFormat ( xmlFormat ) ; elem . detach ( ) ; // In case this element had previously been added to a Document. xmlOutputter . output ( new Document ( elem ) , writer ) ; }
Writes an NcML element to a Writer .