jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jukka Zitting <jukka.zitt...@gmail.com>
Subject Re: How to retrieve a node from a hierarchy?
Date Thu, 26 Feb 2009 15:37:39 GMT
Hi,

On Thu, Feb 26, 2009 at 4:32 PM, Akil Ali <Akil.Ajani@cognizant.com> wrote:
> I have a node hierarcy
>
> A/B/C/D/1
>
> i have to retrieve nodes under D i.e. 1
>
> i have the information that it is under node D. But how to get the NODE
> object of node D. from session. one way is if i have UUID then i can get the
> NODE object and other way is to use XPATH. but i dont want to use both the
> approach. Is there any other way to get the NODE object.?

Try session.getRootNode().getNode("A/B/C/D")

BR,

Jukka Zitting

Mime
View raw message