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 <[email protected]> > 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.
