public static void serializeAsXML(Node node,Writer writer){
  PrintWriter out=new PrintWriter(writer);
  print(node,out);
  out.flush();
}

public static void serializeAsXML ( Node node , Writer writer ) { PrintWriter out = new PrintWriter ( writer ) ; print ( node , out ) ; out . flush ( ) ; }
serialize this node into the writer as xml .
