Well I added that document and ran the xpath and it returned the correct
stuff.

What version of Xindice are you running?
Are you sure the document is in the addressbook collection?

You can point your browser to http://localhost:8080/xindice and take a look.

Todd

Amir Saad wrote:
> 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

Reply via email to