[jdom-interest] XPath problems?

Nick Vincent Nick at Neoworks.com
Mon Nov 20 06:19:37 PST 2000


Hi all,

Sorry to post this as I think it's a bit off topic...

I have an XML tree which contains some document elements, which I have to
select by an attribute id..

I am using the code.werken.com XPath engine, and I can get a list of all
documents from the xpath

//document

but when I try and select a specific document using

//document[@id="3"]

XPath throws a NullPointerException.  I've tried no quotes/single
quotes/escaped quotes, but it does the same every time.

Can anyone tell me what I'm doing wrong here?

Thanks,

Nick



More information about the jdom-interest mailing list