views:

79

answers:

1

So, I wish to parse an xml schema and list all the elements along with their annotation and type. I looked at some java possibilities - the closest was XSOM. It seems like driving a truck trailer to get some milk from the neighborhood store.

I looked at JAXB, but there's no parse and list all elements against schemata.

I don't want to validate- only want to list the elements/type/annotation.

Groovy's xmlsurper is a decent parser, but can't parse XSD. Anything you know in Java,Groovy (or python)?

thank you for your time.

A: 

The SAX parser is very simple.

Sjoerd