logo       
Google Custom Search
    AddThis Social Bookmark Button

re: XPath query on ONE document: msg#00058

Subject: re: XPath query on ONE document
you can add the 'name' parameter

params.put(RPCDefaultMessage.NAME, "name of the file");

in fact, when I dont specify 'name', I get a complaint, so I'm unable to query an entire collection so far.

/tycho


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.

_________________________________________________________________
The new MSN 8: advanced junk mail protection and 2 months FREE* http://join.msn.com/?page=features/junkmail





Try Searching:
servers, voip, java, networking, microsoft ...
<Prev in Thread] Current Thread [Next in Thread>