xom-interest AT lists.ibiblio.org
Subject: XOM API for Processing XML with Java
List archive
- From: Jan <janreimone AT gmail.com>
- To: XOM API for Processing XML with Java <xom-interest AT lists.ibiblio.org>
- Subject: Re: [XOM-interest] Empty query result
- Date: Sat, 08 Aug 2009 12:35:46 +0200
Thanks for your answer. The problem is that the xsd file which I want to
query doesn't can be changed. And the root element looks like this:
<schema xmlns="http://www.w3.org/2001/XMLSchema"
targetNamespace="http://www.example.org/DataTypes"
xmlns:tns="http://www.example.org/DataTypes" elementFormDefault="qualified">
That means that xmlns="http://www.w3.org/2001/XMLSchema" has no prefix
specified. And if I query
/xs:schema
I get the following exception:
XPathException: XPath error: XPath expression uses unbound namespace
prefix xs
So is it possible anyhow to query in the right namespace? I mean I can't
modify the xsd file, by adding a prefix to all elements.
-
[XOM-interest] Empty query result,
Jan, 08/08/2009
-
Re: [XOM-interest] Empty query result,
Michael Kay, 08/08/2009
-
Re: [XOM-interest] Empty query result,
Jan, 08/08/2009
- Re: [XOM-interest] Empty query result, Michael Kay, 08/08/2009
- Re: [XOM-interest] Empty query result, Jan, 08/08/2009
-
Re: [XOM-interest] Empty query result,
Jan, 08/08/2009
-
Re: [XOM-interest] Empty query result,
Michael Kay, 08/08/2009
Archive powered by MHonArc 2.6.24.