Return-Path: Delivered-To: apmail-xml-xerces-c-dev-archive@www.apache.org Received: (qmail 62708 invoked from network); 21 Apr 2004 09:15:22 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 21 Apr 2004 09:15:22 -0000 Received: (qmail 4655 invoked by uid 500); 21 Apr 2004 09:14:53 -0000 Delivered-To: apmail-xml-xerces-c-dev-archive@xml.apache.org Received: (qmail 4629 invoked by uid 500); 21 Apr 2004 09:14:53 -0000 Mailing-List: contact xerces-c-dev-help@xml.apache.org; run by ezmlm Precedence: bulk Reply-To: xerces-c-dev@xml.apache.org list-help: list-unsubscribe: list-post: Delivered-To: mailing list xerces-c-dev@xml.apache.org Received: (qmail 4593 invoked from network); 21 Apr 2004 09:14:52 -0000 Received: from unknown (HELO mail-relay1.elsevier.co.uk) (193.131.223.5) by daedalus.apache.org with SMTP; 21 Apr 2004 09:14:52 -0000 Received: from elsoxfs30373.elsevier.co.uk (unverified) by mail-relay1.elsevier.co.uk (Content Technologies SMTPRS 4.3.12) with ESMTP id for ; Wed, 21 Apr 2004 10:15:49 +0100 Received: by elsoxfs30373.elsevier.co.uk with Internet Mail Service (5.5.2657.72) id ; Wed, 21 Apr 2004 10:14:26 +0100 Message-ID: <2EA918FE7CC6FB4BA0510D671ADB2AB411E37049@elsoxfvexch01.elsevier.co.uk> From: "Agrawal, Vikas (ELS)" To: "'xerces-c-dev@xml.apache.org'" Subject: RE: [Pathan-devel] XPathException: The expression '/child::*[1]/* ' is an invalid XPath expression Date: Wed, 21 Apr 2004 10:14:23 +0100 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2657.72) Content-Type: text/plain; charset="iso-8859-1" X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N bash-2.05$ gdb 002-SingleNodeFromList GNU gdb 5.0 Copyright 2000 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "sparc-sun-solaris2.5.1"... (gdb) run Starting program: /disk01/home/vagrawal/captools/libpathan-1.2/examples/tests/002-SingleNodeFr omList Program received signal SIGABRT, Aborted. 0xfed9e42c in _lwp_kill () from /usr/lib/libc.so.1 (gdb) -----Original Message----- From: Alberto Massari [mailto:amassari@progress.com] Sent: 21 April 2004 10:05 To: xerces-c-dev@xml.apache.org Subject: RE: [Pathan-devel] XPathException: The expression '/child::*[1]/* ' is an invalid XPath expression I would suggest you to comment the catch(...) block in the test program, and run it under the debugger; I guess you are getting an access violation that is masked by a generic message. 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/x m >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: Hiran.Chaudhuri@softwareag.com >[mailto:Hiran.Chaudhuri@softwareag.com] >Sent: 20 April 2004 22:30 >To: xerces-c-dev@xml.apache.org >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: > ... >And that is invalid. > >How about this: >"/*[1]/*" > >Hiran > > > -----Original Message----- > > From: Agrawal, Vikas (ELS) [mailto:V.Agrawal@elsevier.co.uk] > > Sent: Tuesday, April 20, 2004 5:33 PM > > To: 'gareth@decisionsoft.com' > > Cc: 'xerces-c-dev@xml.apache.org' > > 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: xerces-c-dev-unsubscribe@xml.apache.org > > For additional commands, e-mail: xerces-c-dev-help@xml.apache.org > > > > > >--------------------------------------------------------------------- >To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org >For additional commands, e-mail: xerces-c-dev-help@xml.apache.org > >--------------------------------------------------------------------- >To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org >For additional commands, e-mail: xerces-c-dev-help@xml.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org For additional commands, e-mail: xerces-c-dev-help@xml.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org For additional commands, e-mail: xerces-c-dev-help@xml.apache.org