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!

how to add doctype when generating XML from an arbitrary data structure

843834Sep 3 2001 — edited Jun 16 2003
I was reading SUN's tutorial "Working with XML - PART IV: Using XSLT". Inside this tutorial, in 3, it talks about how to generate XML from an arbitrary data structure making use of a XMLReader and a Transformer. The example only shows adding elements. Is there a way to add DTD information in the XML generated, i.e. <!DOCTYPE ... >? What APIs can I use?

Thanks,
Alex
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jul 14 2003
Added on Sep 3 2001
5 comments
280 views