I was wondering if anyone could point me in the direction of a library or technique that will allow me to parse an XSD file, i.e. maybe getting a list of the top level elements in the XSD?
Don't XSD files just follow the rules of XML? If that is the case and you want to examine the contents on the XML level like finding top level elements (not the specifics on XSD), you need to look at the standard XML parsing techniques.
javax.xml.parsers and some accompanying packages
All available in java SE
Hope this helps,
Yeah I know what you mean, but Im designing my app to have a user interface that is more like a big "this is what you can do" type of interface.
So I was hoping to grab all top elements and make menu items etc... for them.
I guess that XSD's are just XML, so I could parse them like normal XML files. Thanks for the tips.
Your use of this web site or any of its content or software indicates your agreement to be bound by these Terms of Participation.
Copyright © 2015, Oracle and/or its affiliates. All rights reserved. Oracle and Java are registered trademarks of Oracle and/or its affiliates. Other names may be trademarks of their respective owners.