I wanted to extract a list of sub-element names declared within a DTD stored within and XML file. Ive been looking for a function to do this but no luck.
This is an example of what my DTD looks like
<!ELEMENT SOMETHING(THIS, THAT)>
<!ELEMENT THIS (#CDATA)>
<!ELEMENT THAT (#CDATA)
Anyone have any ideas on how I would retrieve a String array of the sub Elements of SOMETHING (i.e. THIS and THAT)? Or is this a really bad way to do things?
Appreciate any help.