xom-interest AT lists.ibiblio.org
Subject: XOM API for Processing XML with Java
List archive
- From: "Michael Kay" <mike AT saxonica.com>
- To: "'XOM API for Processing XML with Java'" <xom-interest AT lists.ibiblio.org>
- Subject: Re: [XOM-interest] Empty query result
- Date: Sat, 8 Aug 2009 11:17:54 +0100
The elements you want are all in the xs namespace but you are searching for
names in no namespace. You need to write something like
//xs:complexType
and bind the prefix xs to the XML Schema namespace.
> I can imagine
> that this question wasn't posted the first time.
>
Indeed not, it is a very common question (though it has nothing specifically
to do with XOM). Google for "XPath default namespace".
Regards,
Michael Kay
http://www.saxonica.com/
http://twitter.com/michaelhkay
-
[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.