Superb.

Many thanks Alex.

P.

-----Original Message-----
From: Alexander Klimetschek [mailto:[email protected]] 
Sent: 07 July 2009 11:47
To: [email protected]
Subject: Re: Query for Nodes from a given Path

On Tue, Jul 7, 2009 at 12:46 PM, BOWLER
Paul<[email protected]> 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.

Regards,
Alex

-- 
Alexander Klimetschek
[email protected]

Reply via email to