Hi Gul, I ran your query from the command line on your sample document in a test database and it only returned one record like I expected. Are you sure this record isn't in more then one document or repeated in your document?
here is the command I ran: xindice xpath -c /db/test -q "//phonebook[name='Tom' or number='07989270142']" and my output: <?xml version="1.0"?> <phonebook xmlns:src="http://xml.apache.org/xindice/Query" src:col="/db/test" src:key="test"> <name>Tom</name> <number>07989270142</number> </phonebook> I am using version 1.0 still. Maybe you can discribe your problem in a tad more depth and I would be glad to continue to help. Todd Byrne On Thu, 2002-12-05 at 09:58, Gul Akbar wrote: > Hello, > > I have this problem with my XPath Query. > > //phonebook[ name='Tom' or number='07989270142' ] > > This returns the same record twice, and I know that there is only one of > those > records. The XML that is stored: > > <phonebook> > <name>Tom</name> > <number>07989270142</number> > </phonebook> > > Can anyone please tell me why this record is being returned twice when I use > the boolean operator "OR" (shown in the XPATH above). > > Thanking you in advance > Gul > > ------------------------------------------------- > This mail sent through IMP: webmail.brad.ac.uk