The simplest way to create an XML document given values that you have obtained from an HTML request in the usual way is to just write plain text.
Where does the resulting XML have to go? Using standard
java you can write to a file or a
String in memory or a variety of other output streams.
Do you have a sample of what the XML is supposed to look like?
Bill