How Can Get DTD elements/Attribute In java

Dear Friends,

I want to get DTD Element in java Like by using DOM parser we can get Elements/Attribute in XML.

<!ELEMENT author (#PCDATA)>

<!ATTLIST author

id (2 | 4 | 6) #REQUIRED

>

<!ELEMENT book (author, page)>

<!ATTLIST book

id (1 | 2 | 3 | 4) #REQUIRED

name CDATA #REQUIRED

>

<!ELEMENT library (book+)>

<!ELEMENT page (#PCDATA)>

By Example

i wants i can get elements library -> childs are book

book child have Attributes id and name..

how can i get .

pls help me

with regards

Siddharth singh

[657 byte] By [Siddharth] at [2007-9-30 20:47:36]
# 1
http://www.wutka.com/dtdparser.html
pgeuens at 2007-7-7 2:20:44 > top of Java-index,Java Essentials,Java Programming...