Originally posted by Edward Morris:
Whats the big deal with the names here?
See
here and
here for some background. We do take this rule (as well as the "Be Nice" rule) quite seriously.
Now, as far as your questions go: as you know, XML is just plain text. The very simplest way to create it is like this:
System.out.println("<?xml version='1.0'?>");
System.out.println("<body></body>");
Can't get much easier than that!
Now, for more helpful APIs, the tutorial mentioned above is going to be the best source. I can help you focus by pointing out the parts you really want to see.
This document tells you how to build a DOM (document object model) using API calls, and then
this page tells you how to turn a DOM into an XML file on disk.
Finally,
here's the documentation page for the JDOM project; JDOM is similar to the standard DOM API, but simpler (and non-standard.) You pays your nickle and you makes your choice.