Try: /person/[EMAIL PROTECTED]'home'] -----Original Message----- From: Amir Saad [mailto:[EMAIL PROTECTED] Sent: Monday, February 27, 2006 4:23 AM To: xindice-users@xml.apache.org Subject: XPath Problem
I have Xindice version 1 running on WinXP I tried to execute the XPath query mentioned in the documentation but no result although there are matching entries. here is the file I added to the collection: <?xml version="1.0"?> <person> <fname>John</fname> <lname>Smith</lname> <phone type="work">563-456-7890</phone> <phone type="home">534-567-8901</phone> <email type="home">[EMAIL PROTECTED]</email> <email type="work">[EMAIL PROTECTED]</email> <address type="home">34 S. Colon St.</address> <address type="work">9967 W. Shrimp Ave.</address> </person> and here is the XPath query: xindice xpath -c /db/addressbook -q "/person[phone/@type='home']" I hope you can help, Thanks Amir Saad Software Engineer