question: public static void printNode ( Node node , OutputStream out ) throws IOException { printNode ( node , new StreamResult ( out ) ) ; out . write ( '\n' ) ; out . flush ( ) ; }
target:  Serializes an XML Node to an OutputStream (as UTF-8).