Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Adding the !DOCTYPE declaration to an xml document using Xerces

843834Mar 21 2002 — edited Mar 21 2002
I 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.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 18 2002
Added on Mar 21 2002
2 comments
557 views