I have requirement to read all the dtd elements and load in to java list or something. I don't want to validate the elements. All I'm trying to look for is read all the elements in the dtd.
for example :
<?xml version="1.0" encoding="UTF-8"?>
<!ELEMENT TSListing ((TSReference | (TSIdentification, TSFile?)), TSPriorityApplicationIdentification?, (TSName)>
<!ATTLIST TSListing
dtdVersion CDATA #REQUIRED
fileName CDATA #IMPLIED
softwareName CDATA #IMPLIED
softwareVersion CDATA #IMPLIED
productionDate CDATA #IMPLIED
originalFreeTextLanguageCode CDATA #IMPLIED
nonEnglishFreeTextLanguageCode CDATA #IMPLIED
>
<!ELEMENT TSReference (#PCDATA)>
<!ELEMENT TSIdentification (IPOfficeCode, ApplicationNumberText, FilingDate?)>
<!ELEMENT TSApplicationIdentification (IPOfficeCode, ApplicationNumberText, FilingDate?)>
<!ELEMENT TStName (#PCDATA)>
I want to load this in to some list or map ?