XSGrammar has a method "toXSModel", which converts a Xerces schema grammar
object to an implementation of XSModel. Then you can query various
properties of various schema components from XSModel.
Note that XSModel and other Schema Component interfaces are currently in
the Xerces implementation package: org.apache.xerces.impl.xs.psvi.
Hope this helps,
Sandy Gao
Software Developer, IBM Canada
(1-905) 413-3255
[EMAIL PROTECTED]
"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]