public static void printNode(Node node,OutputStream out) throws IOException {
  printNode(node,new StreamResult(out));
  out.write('\n');
  out.flush();
}

public static void printNode ( Node node , OutputStream out ) throws IOException { printNode ( node , new StreamResult ( out ) ) ; out . write ( '\n' ) ; out . flush ( ) ; }
serializes an xml node to an outputstream ( as utf - 8 ) .
