<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
<META NAME="GENERATOR" CONTENT="GtkHTML/1.1.8">
</HEAD>
<BODY>
Hi <BR>
ThanQ michael for immediate reply :- )<BR>
I got ur point ... but what i wonder is , how it works with the older version of jdom and jaxen jars.<BR>
<BR>
The o/p expected from xpath is getting all matching NPModule Elements at any level. <BR>
<BR>
".//NPModule" works for me ..but still i don't understand reason for the failure of xpath which works with older jar files.<BR>
<BR>
Thanks <BR>
Vik@s <BR>
<BR>
<BR>
On Tue, 2005-03-08 at 15:28, Michael Kay wrote:
<BLOCKQUOTE TYPE=CITE>
<FONT SIZE="2"><I>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.</FONT><BR>
<FONT COLOR="#737373" SIZE="3"> </FONT><BR>
<FONT SIZE="2">Michael Kay<BR>
<A HREF="http://www.saxonica.com/">http://www.saxonica.com/</FONT></A>
<BLOCKQUOTE>
<HR>
<FONT COLOR="#737373" SIZE="2"><B>From:</B> jdom-interest-bounces@jdom.org [mailto:jdom-interest-bounces@jdom.org] <B>On Behalf Of </B>Vikas Mane<BR>
<B>Sent:</B> 08 March 2005 08:51<BR>
<B>To:</B> jdom-interest@jdom.org<BR>
<B>Subject:</B> [jdom-interest] getting ,Invalid XPath expression after Using JDOM1 ..???</FONT><BR>
<FONT COLOR="#737373" SIZE="3"><BR>
<BR>
hi all ,<BR>
<BR>
i have upgraded to JDOM1 but the xpath which used to run properly is giving exceptions after upgrading to JDOM1<BR>
<BR>
this is the xpath i'm using ..<BR>
<BR>
"child:://NPModule [ @name='test' and @parent = 'test1']<BR>
<BR>
I get following exception<BR>
org.jdom.JDOMException: Invalid XPath expression: "child:://NPModule [ @name='config' and @parent = 'kcli']": Expected <QName> or *<BR>
<BR>
What is the reason?<BR>
<BR>
can any buddy suggest/reason solution for the same ?<BR>
<BR>
Thanks<BR>
Vikas<BR>
</I></FONT><BR>
<BLOCKQUOTE TYPE=CITE>
<PRE><TABLE CELLSPACING="0" CELLPADDING="0" WIDTH="100%">
<TR>
</TR>
<TR>
</TR>
<TR>
<TD>
-- <BR>
Vikas Mane<BR>
Kenati Technologies
</TD>
</TR>
</TABLE>
</PRE>
</BLOCKQUOTE>
</BLOCKQUOTE>
</BLOCKQUOTE>
<PRE><TABLE CELLSPACING="0" CELLPADDING="0" WIDTH="100%">
<TR>
<TD>
-- <BR>
Vikas Mane <<A HREF="mailto:vikas@kenati.com">vikas@kenati.com</A>><BR>
Kenati Technologies
</TD>
</TR>
</TABLE>
</PRE>
</BODY>
</HTML>