Alex,
Depending on how much detail you need to see about an XML schema, you
can use the Xerces-J org.apache.xerces.impl.xs.psvi classes and methods,
or, if you need even more precise and comprehensive information then you
may want to look at http://www.eclipse.org/xsd for a Java library which has
this and also supports modifying the schema and maintains the connection
between the DOM XML representation of schema components and the Java
representation it defines.
This library works well in building Eclipse plugins and in
conventional non-Eclipse Java tools. There are UML diagrams that allow you
to quickly see how the various interfaces that library defines hang
together. But I think it has a slightly longer learning curve than the
support already present in Xerces-J.
Regards,
Bob
Bob Schloss
XML/XSL Transformational Systems
IBM Thomas J. Watson Research Center
Yorktown Heights, New York, USA
"Alex
Chatziparaskewas" To: <[EMAIL PROTECTED]>
<[EMAIL PROTECTED]> cc:
Subject: XML schema parsing
10/28/2002 08:05
AM
Please respond to
xerces-j-user
Hi there
I need to parse and *analyze* a XML schema file. Parsing is fine and I end
up with a XSGrammer/SchemaGrammar object. But from then on I am a little
bit
lost as these grammar classes only allow validation of XML data, but do not
reveal any 'structural' information about the XML schema itself. Am I
looking into the wrong classes? Or do I have to build up my own XML schema
model after parsing the XML schema using the impl.xs.dom.DOMParser?
The post schema validation information set is no solution to my problem as
I
am really interested in the XML schema itself.
Regards
Alex
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]