Skip to Content.
Sympa Menu

xom-interest - Re: [XOM-interest] Empty query result

xom-interest AT lists.ibiblio.org

Subject: XOM API for Processing XML with Java

List archive

Chronological Thread  
  • 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






Archive powered by MHonArc 2.6.24.

Top of Page