Skip to Content.
Sympa Menu

xom-interest - Re: [XOM-interest] Xpath parsing problem

xom-interest AT lists.ibiblio.org

Subject: XOM API for Processing XML with Java

List archive

Chronological Thread  
  • From: Dave Pawson <dave.pawson AT gmail.com>
  • To: XOM API for Processing XML with Java <xom-interest AT lists.ibiblio.org>
  • Subject: Re: [XOM-interest] Xpath parsing problem
  • Date: Thu, 3 Mar 2011 07:56:09 +0000

On 3 March 2011 00:01, Mike Miller <mm8041 AT gmail.com> wrote:
> Not sure if this went through the first time:
>
>  Hi,
>
> I'm trying to use Xpath

> So my doc looks like this:
> <root a bunch of namespace crap>
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

> So I tried something like:
>  nodes = doc.query("/root/result/space");
>  then when I dumped the size of nodes, it is 0, but i expected 1 because
> there is 1

Your 'bunch of namespace crap' isn't crap
when you want to use xpath.

Perhaps you need a little more understanding there prior
to using xpath?



--
Dave Pawson
XSLT XSL-FO FAQ.
Docbook FAQ.
http://www.dpawson.co.uk




Archive powered by MHonArc 2.6.24.

Top of Page