Results 1 to 3 of 3
Thread: Writing an XML output
- 03-04-2008, 05:10 PM #1
Member
- Join Date
- Mar 2008
- Posts
- 4
- Rep Power
- 0
- 03-27-2008, 04:06 PM #2
Hey.
Well to write to a file you would need to do this:
Obviousally you would need to format the output correctly to be a proper xml document.Java Code: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();
Hope that helps you get started!! :)
- 03-27-2008, 04:15 PM #3
Member
- Join Date
- Mar 2008
- Posts
- 4
- Rep Power
- 0
Similar Threads
-
Output to excel
By abhiN in forum New To JavaReplies: 2Last Post: 03-07-2008, 01:19 AM -
Output problem
By jvasilj1 in forum New To JavaReplies: 0Last Post: 01-31-2008, 06:39 PM -
output
By Camden in forum New To JavaReplies: 3Last Post: 12-01-2007, 10:34 PM -
How to redirect the output
By JavaBean in forum Java TipReplies: 0Last Post: 10-04-2007, 09:30 PM -
No output shown
By ai_2007 in forum Advanced JavaReplies: 4Last Post: 07-10-2007, 09:26 AM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks