Try http://wutka.com/dtdparser.html

The only other option is Sun's MSV but I find it difficult to use and overkill for what you're asking about.
Wutka's parser builds a pretty usable structure of objects that you can access. Check out his API docs.

Have fun

Samuel Cheung wrote:

Hi,

Can someone please tell me where can I find a DTD Parser?
What kind of data structure it will build?

I would like to do stuff like this:
1. given an ElementName, can that ElementName has a child named "aChildName"?
2. given an ElementName, what are the requried attributes?

Thank you for pointer.



-------------------------------------------------------
This SF.net email is sponsored by: SlickEdit Inc. Develop an edge.
The most comprehensive and flexible code editor you can use.
Code faster. C/C++, C#, Java, HTML, XML, many more. FREE 30-Day Trial.
www.slickedit.com/sourceforge
_______________________________________________
dom4j-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/dom4j-user

Reply via email to