jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alexander Klimetschek <aklim...@day.com>
Subject Re: Query for Nodes from a given Path
Date Tue, 07 Jul 2009 10:46:37 GMT
On Tue, Jul 7, 2009 at 12:46 PM, BOWLER
Paul<Paul.Bowler@alcatel-lucent.com> wrote:
> The problem is that the pcf:Color node can appear at many levels within the tree so specifying
an absolute path won't work.
> [..]
> query = qm.createQuery("/jcr:root/the/starting/node/pcf:Color",

The trick is the "//" location step, which means descendent-or-self,
ie. any node named pcf:Color in the subtree under the absolute path
given before.


Alexander Klimetschek

View raw message