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 Matthieu RIOU <ma...@yahoo.fr> on 2003/10/19 12:46:38 UTC

XPath query on ONE document

Hi,

Is there a way with Xindice to execute a XPath query
against only one document instead of the whole
collection ? 

The only solution I found was to add the document id
inside the document and execute a query on the element
I really cared about like :

/db/root/id[.=12]/../customer/name 

But that's not so clean.

Thanks, Matt.

___________________________________________________________
Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français !
Yahoo! Mail : http://fr.mail.yahoo.com