Hey.
Well to write to a file you would need to do this:
Writer output = null;
output = new BufferedWriter(new FileWriter("my_document.xml"));
String newline = System.getProperty("line.separator");
output.write("<tag>calculated results</tag>");
output.write(newline);
output.close();
Obviousally you would need to format the output correctly to be a proper xml document.
Hope that helps you get started!!
