That's not a valid XPath expression. "child::" must be followed by a NodeTest. I can't suggest a correction because I've no idea what the writer of this expression thought it might mean. Perhaps just child::NPModule - people often seem to throw in a "//" as magic pixie-dust when they don't know what they're doing.
Michael Kay
http://www.saxonica.com/
From: jdom-interest-bounces@jdom.org [mailto:jdom-interest-bounces@jdom.org] On Behalf Of Vikas Mane
Sent: 08 March 2005 08:51
To: jdom-interest@jdom.org
Subject: [jdom-interest] getting ,Invalid XPath expression after Using JDOM1 ..???
hi all ,
i have upgraded to JDOM1 but the xpath which used to run properly is giving exceptions after upgrading to JDOM1
this is the xpath i'm using ..
"child:://NPModule [ @name='test' and @parent = 'test1']
I get following exception
org.jdom.JDOMException: Invalid XPath expression: "child:://NPModule [ @name='config' and @parent = 'kcli']": Expected <QName> or *
What is the reason?
can any buddy suggest/reason solution for the same ?
Thanks
Vikas
--
Vikas Mane
Kenati Technologies
|
-- Vikas Mane <vikas@kenati.com> Kenati Technologies |