Hi,
The global element declarations have type which is either simple or complex
type, global type definitions again is either simple or complex type
definitions. You need to cast to the appropriate simple or complex type
interface (XSSimpleTypeDefinition or XSComplexTypeDefinition) to be able to
query information about simple/complex type.
Please refer to this article for more information:
http://idealliance.org/papers/dx_xmle04/papers/02-05-02/02-05-02.html
Thank you,
----
Elena Litani / IBM Toronto
[EMAIL PROTECTED]
ch.com
To
05/14/2004 12:08 [EMAIL PROTECTED]
AM cc
Subject
Please respond to XML Schema traversal
xerces-j-user
Hi
I have a question on Xerces-J which I have spent days and not able to get
anywhere.
I am trying to use the XML Schema API (XSModel, XSLoader, XS*) to parse a
XML schema file. I use the xs.QueryXS.java sample that comes together with
the xerces-262 download as my code base. However, it seems that I can only
get as far as to list the global element and type. I am not able to find
out details of a complex type declaration. The xsd that I uses is the
purchaseOrder.xsd from the XML Schema primer.
Can anyone help me by pointing me to some code samples that traverses the
whole xsd file using the XS* classes ?
I have thought about using PSVI, however, it seems to be that I need to
have both XSD and XML file (which I do not have) in order to take that
approach.
Thanks and best regards
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]