Right now, I just have my XML in a file, but I want to generate it on the fly. The documentation says you can do this with DOM or SAX. Is there any problem doing it with JDOM?
You can't use JDOM directly. Check for a walker which produces SAX events from the JDOM.
J.Pietschmann