[prev in list] [next in list] [prev in thread] [next in thread] 

List:       xerces-j-dev
Subject:    Re: Accessing <xs:include> schemaLocation attribute from XsModel
From:       Michael Glavassevich <mrglavas () ca ! ibm ! com>
Date:       2009-05-30 17:53:33
Message-ID: OF02B1A712.98CADF81-ON852575C6.0060C7EA-852575C6.00624A7E () ca ! ibm ! com
[Download RAW message or body]

Hi Ranjit,

riyer@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 particu=
lar
> XSModel. I basically want to get a list of xsd's included in the pres=
ent
> 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-unsubscribe@xerces.apache.org
> For additional commands, e-mail: j-users-help@xerces.apache.org

Thanks.

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

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

[Attachment #3 (text/html)]

<html><body>
<p><tt>Hi Ranjit,</tt><br>
<br>
<tt>riyer@esri.com wrote on 05/30/2009 01:24:36 PM:<br>
<br>
&gt; Hello,<br>
&gt; <br>
&gt; I had a couple questions:<br>
&gt; <br>
&gt; 1. What is the best way to obtain a list of &quot;include&quot;s from a \
particular<br> &gt; XSModel. I basically want to get a list of xsd's included in the \
present<br> &gt; xsd.<br>
</tt><br>
<tt>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.</tt><br> <tt><br>
&gt; 2. Or the converse. Given a XSTypeDefinition, is there a way to find which<br>
&gt; .xsd it was defined in? It is possible that the XsModel encapsulates an xsd<br>
&gt; and all other xsds that were &quot;include&quot;d within the first one. I want \
to be<br> &gt; able to tell which xsd a particular type is coming from.<br>
</tt><br>
<tt>No, this isn't part of the API or stored anywhere in the implementation.</tt><br>
<tt><br>
&gt; Thanks,<br>
&gt; Ranjit<br>
&gt; <br>
&gt; ---------------------------------------------------------------------<br>
&gt; To unsubscribe, e-mail: j-users-unsubscribe@xerces.apache.org<br>
&gt; For additional commands, e-mail: j-users-help@xerces.apache.org</tt><br>
<br>
<tt>Thanks.<br>
</tt><br>
<tt>[1] </tt><tt><a href="http://xerces.apache.org/xerces2-j/javadocs/xs/org/apache/xe \
rces/xs/XSNamespaceItem.html#getDocumentLocations()">http://xerces.apache.org/xerces2- \
j/javadocs/xs/org/apache/xerces/xs/XSNamespaceItem.html#getDocumentLocations()</a></tt><br>
 <br>
<tt>Michael Glavassevich<br>
XML Parser Development<br>
IBM Toronto Lab<br>
E-mail: mrglavas@ca.ibm.com</tt><br>
<tt>E-mail: mrglavas@apache.org</tt></body></html>



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic