Writing the data to an XML file
I am very new to Java and have been writing a very small basic program for college, but I have got stuck with writing the data my program outputs, into an XML file.
Basically I want the data calculated to be output into an XML file which will be formatted to look like a quotation, and then read by the program, although I am only bothered about the writing at the moment.
The code for the program is in the attached text file. It would be very helpful if someone could tell me where to start with writing XML for this program, or point me in the direction of a good tutorial.
I have sofar tried several examples on the net, like OutputStream, but with no luck. I think this may be because I don't really know how to do it properly.
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL