Anna (archive)
Usenet Archive
- Joined
- Nov 2, 2001
- Messages
- 93
- Reaction score
- 0
Hi all.
I need to parse an XML Schema and get the following information out of it:
list of elements allowed in schema
list of attributes for each element - which are required and which optional given an element name get elements that it can contain etc.
Parsing with JDOM XPath seems to be complicated, because there are many ways to say something in schema, although it would be my preferred way.
I also looked at JAXB and Xerces, but their APIs seem to be more complicated than I need.
Is there a simple API for doing what I need?
Thank you very much for help.
Anna
I need to parse an XML Schema and get the following information out of it:
list of elements allowed in schema
list of attributes for each element - which are required and which optional given an element name get elements that it can contain etc.
Parsing with JDOM XPath seems to be complicated, because there are many ways to say something in schema, although it would be my preferred way.
I also looked at JAXB and Xerces, but their APIs seem to be more complicated than I need.
Is there a simple API for doing what I need?
Thank you very much for help.
Anna