[prev in list] [next in list] [prev in thread] [next in thread]
List: xerces-j-dev
Subject: Re: How to retrieve targetNamespace of XSModel for a given schema file?
From: Michael Glavassevich <mrglavas () ca ! ibm ! com>
Date: 2008-06-27 22:26:38
Message-ID: OF1BFD8647.334F8419-ON85257475.007A8601-85257475.007B5496 () ca ! ibm ! com
[Download RAW message or body]
Hi Vinitha,
Each XSNamespaceItem carries a list [1] of the URIs that contributed to=
the
components of that target namespace. So you need to walk through the li=
st
of each XSNamespaceItem until you find the schema location you're looki=
ng
for.
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
vinitha <praavich@yahoo.com> wrote on 06/25/2008 05:12:00 PM:
> Hi,
>
> I created a XSModel using XSLoader.loadURI(), but Iam not able to
retrieve
> the value of the targetNamespace as defined in the schema document. =
I
was
> able to retrieve the getNamespaceItemList() which is referring all th=
e
> namespaces being loaded in the schema document. But how do I identify=
which
> is the targetNamespace for the schema document loaded into the XSMode=
l.
Any
> help will be appreciated.
>
> Thanks,
> vinitha
>
>
>
> --
> View this message in context: http://www.nabble.com/How-to-retrieve-
>
targetNamespace-of--XSModel-for-a-given-schema-file--tp18121873p1812187=
3.html
> Sent from the Xerces - J - Users mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------=
> To unsubscribe, e-mail: j-users-unsubscribe@xerces.apache.org
> For additional commands, e-mail: j-users-help@xerces.apache.org=
[Attachment #3 (text/html)]
<html><body>
<p><tt>Hi </tt><tt>Vinitha,</tt><br>
<br>
<tt>Each XSNamespaceItem carries a list [1] of the URIs that contributed to the \
components of that target namespace. So you need to walk through the list of each \
XSNamespaceItem until you find the schema location you're looking for.</tt><br> <br>
<tt>Thanks.</tt><br>
<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><br>
<br>
<tt>vinitha <praavich@yahoo.com> wrote on 06/25/2008 05:12:00 PM:<br>
<br>
> Hi, <br>
> <br>
> I created a XSModel using XSLoader.loadURI(), but Iam not able to retrieve<br>
> the value of the targetNamespace as defined in the schema document. I \
was<br> > able to retrieve the getNamespaceItemList() which is referring all \
the<br> > namespaces being loaded in the schema document. But how do I identify \
which<br> > is the targetNamespace for the schema document loaded into the \
XSModel. Any<br> > help will be appreciated. <br>
> <br>
> Thanks,<br>
> vinitha<br>
> <br>
> <br>
> <br>
> -- <br>
> View this message in context: <a \
href="http://www.nabble.com/How-to-retrieve-">http://www.nabble.com/How-to-retrieve-</a><br>
> targetNamespace-of--XSModel-for-a-given-schema-file--tp18121873p18121873.html<br>
> Sent from the Xerces - J - Users mailing list archive at Nabble.com.<br>
> <br>
> <br>
> ---------------------------------------------------------------------<br>
> To unsubscribe, e-mail: j-users-unsubscribe@xerces.apache.org<br>
> For additional commands, e-mail: j-users-help@xerces.apache.org<br>
</tt></body></html>
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic