[jdom-interest] getting , Invalid XPath expression after Using JDOM1 ..???

Michael Kay mike at saxonica.com
Tue Mar 8 01:58:26 PST 2005


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 at jdom.org [mailto:jdom-interest-bounces at jdom.org]
On Behalf Of Vikas Mane
Sent: 08 March 2005 08:51
To: jdom-interest at 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 	


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.jdom.org/pipermail/jdom-interest/attachments/20050308/d07980e3/attachment.htm


More information about the jdom-interest mailing list