Adding the !DOCTYPE declaration to an xml document using Xerces
843834Mar 21 2002 — edited Mar 21 2002I am using Xerces to create a DOM xml document in memory and then writing it out to a file. However, I need to specify the name of the DTD against which to validate the document in the <!DOCTYPE tag of the xml document. Xerces implicitly writes the processing instruction, but I have not found a way to add the <!DOCTYPE declaration.
Can anyone help with this!?!?
Thanks,
Rob.