You are viewing a plain text version of this content. The canonical link for it is here.
Posted to xindice-users@xml.apache.org by Julian Ray <ju...@attbi.com> on 2002/05/04 13:58:54 UTC
Query Syntax and Error
Using Sun Java 1.3.1 on Windows XP
I started Xindice and added the two address XML files from the
distribution into a collection /db/addressbook
Querying the collection using
xindice xpath -c /db/addressbook -q /person
or
xindice xpath -c /db/addressbook -q /person/fname
works fine and as expected. However if I try to select from the
collection using
xindice xpath -c /db/addressbook -q /person[fname='John']
or
xindice xpath -c /db/addressbook -q /person[fname="John"]
I get nothing returned. After searching the mail list I tried to use
the quoted form
xindice xpath -c /db/addressbook -q "/person[fname='John']"
and get
='John']""=="" was unexpected at this time
Any help is greatly appreciated.
Thanks
Julian