Alberto
At 09.57 21/04/2004 +0100, Agrawal, Vikas (ELS) wrote:
Hiran, Thanks for your reply. Actually problem is common to any kind of expression. I am using pathan in my application and there also I am getting invalid XPath expression for all my expressions. Surprising thing is that my application was used to work with Pathan 1.2 release 1. As soon as I upgraded to Pathan 1.2 release 2 it has stopped working. Though still it is working on Windows using Pathan 1.2 release 2 but not on Solaris.
See following is the straight forward simple expression but still it fails. XPathException: The expression '/xmlns:dataset/xmlns:dataset-content/xmlns:book-project/xmlns:files-info/xm lns:ml/xmlns:pathname' is an invalid XPath expression
I thought it might be the problem with namespace hence I changed above expression to (on solaris) '/dataset/dataset-content/book-project/files-info/ml/pathname' Now it does not throw invalid XPath expression exception but returns the multiple of random data from the tree.
Even I modified expression as you suggested in the sample program provided by Pathan but still getting bash-2.05$ 002-SingleNodeFromList XPathException: The expression '/*[1]/*' is an invalid XPath expression
Thanks. Vikas Agrawal
-----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: 20 April 2004 22:30 To: [EMAIL PROTECTED] Subject: RE: [Pathan-devel] XPathException: The expression '/child::*[1]/*' is an invalid XPath expression
Hi, Vikas.
Just a guess: "/" is the abbreviated version of the "child::" axis. So if you use "/child::..." you have used a grammar like this: <axisspecifier> <axisspecifier> ... And that is invalid.
How about this: "/*[1]/*"
Hiran
> -----Original Message----- > From: Agrawal, Vikas (ELS) [mailto:[EMAIL PROTECTED] > Sent: Tuesday, April 20, 2004 5:33 PM > To: '[EMAIL PROTECTED]' > Cc: '[EMAIL PROTECTED]' > Subject: [Pathan-devel] XPathException: The expression > '/child::*[1]/*' > is an invalid XPath expression > > > We have built Pathan 1.2 release 2 on Solaris9 with > gcc 3.2.3 and keep getting invalid xpath expression > errors. > > When we run the test program 002-SingleNodeFromList > we get: > XPathException: The expression '/child::*[1]/*' is an > invalid XPath expression. > > Perhaps we are making a mistake in the build process? > > Can someone please help? > > Thanks. > > Vikas Agrawal > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > >
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
