Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Extracting Array of Element Names

843834Oct 7 2005 — edited Oct 10 2005
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.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Nov 7 2005
Added on Oct 7 2005
3 comments
153 views