[jdom-interest] Build a Validated XML tree using JDOM

Jason Hunter jhunter at collab.net
Mon Oct 23 09:22:00 PDT 2000

djacobson at javtech.com wrote:
> I need to build a valid XML tree based on a DTD.  I am reading the IBM book
> "XML and Java", on page 76 they describe a process that involves reading
> the DTD into memory, and then walking the DTD, adding the elements in the
> appropriate place.
> This seems very laborious.  Is there an easier way to do it in JDOM, or any
> other API?

You can't build a doc in JDOM forcing it to follow a certain DTD,
although we're looking to add a validate feature where you can check a
doc after it's been built.


More information about the jdom-interest mailing list