DTD API in java

A

Arun Hallan

Hi,

I need to parse a DTD file to check if a certain sequence of elements
in an XML file are correct.

EG

XML sequence: project --> target --> javac --> classpath

Then the DTD parser wud check for a project element, then see if
target is valid under that, then check if javac is valid under that
etc etc...

(BTW the dtd schema is for apache ant)

I have tried converting the DTD to XML with stylus studio, but the
generated XML is too large and it won't allow it (i presume because of
the vast amount of possibilities).

Is there an API that will deal with DTD's in such a way? I want to be
able to take an XML element, and check if all it's children are valid
under the DTD, then do the same recursively for each of their
children.

Any help appreciated.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top