> -----Original Message-----
> From: Andrew Anand [mailto:[EMAIL PROTECTED]]
> 1)How can I start building the XML which needs to be well-formed and valid against this DTD eventually.
> 2)Can I create an empty XML built from the pre-existing DTD and populate the values ?
How about generating a 'canonical' XML view of the HTTP request & then using an XSLT to transform it to your specific DTD.
Your servlet wouldn't have to know very much.
mike