dcsimg

I want to generate an XML using JAXP parsers and i want to include a DOCTYPE tag that references a dtd. how can i do that? can anyone please help me out?

Bruce Martin

The DOM API allows for the creation of a DOCTYPE. The DOMImplementation interface defines a createDocumentType() method. The DOMImplementation interface can be obtained from a Document.