jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Akil Ali <Akil.Aj...@cognizant.com>
Subject Re: How to retrieve a node from a hierarchy?
Date Thu, 26 Feb 2009 15:42:42 GMT


Sorry sir i dont have the information that NODE D is under A/B/C. so how to
get the NODE object of NODE D. without prior knowledge that D is under
A/B/C.


Jukka Zitting wrote:
> 
> 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
> 
> 

-- 
View this message in context: http://www.nabble.com/How-to-retrieve-a-node-from-a-hierarchy--tp22226591p22226806.html
Sent from the Jackrabbit - Users mailing list archive at Nabble.com.


Mime
View raw message