Paul Clapham wrote:Normally (i.e. in real life) you don't take a DTD and produce an XML document from it. That makes very little sense given that there's usually an infinite number of XML documents that conform to any given DTD. You may well be given an XML document and told to parse it and use the DTD for validation, but that's a different thing entirely. So I suggest that you go back and clarify your requirements, as it seems you might not have understood them correctly.
Thank you for your response. I understand that DTD's are for validation purposes but was wondering if there is any way one can create an XML file using the DTD structure
through some API or free tool)
Also, what would be the best and easy way to create an XML file. JDOM is one. Any other anyone can suggest??
Thank you very much in advance.