jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christoph Kiehl <christ...@sulu3000.de>
Subject Re: XPath query returns no results
Date Mon, 19 Nov 2007 11:44:04 GMT
Daniel Mitterdorfer wrote:

> If I query for 
> all nodes using the XPath query '//*', I get all nodes in the 
> repository. So far, so good. However, if i want to query only for the 
> 'interedu' subtree using the XPath query '//interedu/*' i get no results 
> although 'interedu' has child nodes. I have already tried quite a few 
> things but got no sufficient results (including a research on the 
> Jackrabbit mailing lists). Can anybody see my error(s) or give me some 
> pointers? Thanks!

I'm not an XPath expert and it might be a bug, that the above doesn't work. But 
until then try 'interedu/*' or '/jcr:root/interedu/*'. Relative queries are 
always relative to the root node.

Cheers,
Christoph


Mime
View raw message