Parse XML Schema with Castor

A

Anna

Hi all.
I want to parse an XML schema and retrieve its structure.
I found castor package and I think that's what I need, but I can't
find few things.

I have an org.exolab.castor.xml.schema.Schema object, and I need to
get the following information:
names of all elements defined in the schema - getElementDecls()
returns only top-level elems.
for each element, get elements and attributes that are allowed under
this element.
for each element, get elements that can be a parent of this element.
etc.

Can I get all this information using castor xml.schema package?
If yes (which I'm almost sure of), can somebody give me some hints on
how to do it?
I couln't find any examples available.

Thank you very much for help.

Anna
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,230
Members
46,816
Latest member
SapanaCarpetStudio

Latest Threads

Top