Hi Andrew, Thanks in advance, it works. I have tried to use contains without single quote, and there will give out error.
Trevor. -----Original Message----- From: Andrew Savory [mailto:[EMAIL PROTECTED] Behalf Of Andrew Savory Sent: Tuesday, April 08, 2003 4:25 PM To: [email protected] Subject: RE: Xpath query not working, me confused...! Hi Trevor, On Tue, 8 Apr 2003, Trevor Leung wrote: > xindice xpath -v -c /db/test -q /person[fname="Paul"] > > it return nothing, is there any wrong with me??? No, nothing wrong with you, I see exactly the same behaviour. Modifying the query to: xindice xpath -v -c /db/test -q '/person[contains(fname,"Paul")]' ... gets the result you are after. I suspect there's some bug in your xpath, although it looks sane to me. Andrew. -- Andrew Savory Email: [EMAIL PROTECTED] Managing Director Tel: +44 (0)870 741 6658 Luminas Internet Applications Fax: +44 (0)700 598 1135 This is not an official statement or order. Web: www.luminas.co.uk
