This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes XML and Related Technologies and the fly likes How to get element names from schema Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "How to get element names from schema" Watch "How to get element names from schema" New topic
Author

How to get element names from schema

Nathan Russell
Ranch Hand

Joined: Aug 18, 2004
Posts: 75
Hi,
I hope I'm posting in the right section, and I hope someone can point me in the right direction with this.

I have the following XML schema:

and I have loaded this into an XMLSchema object from the Oracle XDK.
I can use this to validate DOMParser objects also from the Oracle XDK, and all is working well.

What I would like to do now though is be able to iterate through / enumerate the element names in the schema. So, from the above schema, I would like to produce a list of COUNTRY, ISSUEDATETIME, LOCATION, IVRCODE, and ENUMEQUIP
Can I work out how to do this ? Can I 'eck !

Any help with this would be very much appreciated !

TIA
Nathan
[ April 18, 2006: Message edited by: Nathan Russell ]
 
Consider Paul's rocket mass heater.
 
subject: How to get element names from schema
 
Similar Threads
converting xsd to html
Invalid type (xsi:type) is set when XML request is generated from web service client
Axis 1.4 throwing org.xml.sax.SAXException: Invalid element
schema defaultNamespace or targetNamespace?
unble to validate xml against schema