How can I generate an XML document from a relational database? This XML should be in the format specified by a particular DTD.

Dieter Wimberger

Well you can either code it by hand, retrieving the values from the database and writing out an XML file according to the DTD, or you can search for a tool that helps you to do it. I would suggest to take a look at Castor (http://castor.exolab.org) which could serve well for this task.