Hi Ranjit,

ri...@esri.com wrote on 05/30/2009 01:24:36 PM:

> Hello,
>
> I had a couple questions:
>
> 1. What is the best way to obtain a list of "include"s from a particular
> XSModel. I basically want to get a list of xsd's included in the present
> xsd.

You can get a list of URIs for the schema documents which composed each
XSNamespaceItem [1]. It makes no distinction between includes, imports,
etc... They're all in the same list.

> 2. Or the converse. Given a XSTypeDefinition, is there a way to find
which
> .xsd it was defined in? It is possible that the XsModel encapsulates an
xsd
> and all other xsds that were "include"d within the first one. I want to
be
> able to tell which xsd a particular type is coming from.

No, this isn't part of the API or stored anywhere in the implementation.

> Thanks,
> Ranjit
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: j-users-unsubscr...@xerces.apache.org
> For additional commands, e-mail: j-users-h...@xerces.apache.org

Thanks.

[1]
http://xerces.apache.org/xerces2-j/javadocs/xs/org/apache/xerces/xs/XSNamespaceItem.html#getDocumentLocations
(),

Michael Glavassevich
XML Parser Development
IBM Toronto Lab
E-mail: mrgla...@ca.ibm.com
E-mail: mrgla...@apache.org

Reply via email to