datasource.output("network.xml");
java.io.Writer
Writer writer = new PrintWriter(System.out); dataSource.output(writer); writer.flush();