Return-Path: Delivered-To: apmail-jackrabbit-users-archive@minotaur.apache.org Received: (qmail 2321 invoked from network); 26 Feb 2009 15:38:09 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 26 Feb 2009 15:38:09 -0000 Received: (qmail 59378 invoked by uid 500); 26 Feb 2009 15:38:07 -0000 Delivered-To: apmail-jackrabbit-users-archive@jackrabbit.apache.org Received: (qmail 59362 invoked by uid 500); 26 Feb 2009 15:38:07 -0000 Mailing-List: contact users-help@jackrabbit.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@jackrabbit.apache.org Delivered-To: mailing list users@jackrabbit.apache.org Received: (qmail 59351 invoked by uid 99); 26 Feb 2009 15:38:07 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 26 Feb 2009 07:38:07 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of jukka.zitting@gmail.com designates 209.85.218.164 as permitted sender) Received: from [209.85.218.164] (HELO mail-bw0-f164.google.com) (209.85.218.164) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 26 Feb 2009 15:38:00 +0000 Received: by bwz8 with SMTP id 8so553353bwz.43 for ; Thu, 26 Feb 2009 07:37:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=56jpbLqPZ1mbd+DPTrnN/AwQndXqfLTs0Qvm7imRhyY=; b=ZXWsnrvwq0Q+rBzns6z8TEr8o+WW9hbn47KrrWbaNYoJ8XtDxZYL6isy6p7DjiUecn KRLwlI4ltTXfTYsIRxluXG9aFl7o1vI227Rdj4W5oDmzNoLgjbEVy7Wl+qyEtun6yYFc hz9PKPgmw1wnEOYSQkhu+fZQsg6uH5rgzgtNg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=koHy9M6qvIJ6+NZymw/Y0C2ZZK5BZr975fJ79LSdNB3gIdiVV0VAhuqxW68sdUuXrr VUR+N+dEZEKQt0MfEddX4m62PikZw1mguhKya3JwFy595d1a/oV8sb2oFjJuYIVrfuHG bMjA3nB7MRQ4rAB/rP1HINayoJNSx51OmBDXI= MIME-Version: 1.0 Received: by 10.181.206.7 with SMTP id i7mr495596bkq.57.1235662659509; Thu, 26 Feb 2009 07:37:39 -0800 (PST) In-Reply-To: <22226591.post@talk.nabble.com> References: <22226591.post@talk.nabble.com> Date: Thu, 26 Feb 2009 16:37:39 +0100 Message-ID: <510143ac0902260737h462af184qf065365df2b887c6@mail.gmail.com> Subject: Re: How to retrieve a node from a hierarchy? From: Jukka Zitting To: users@jackrabbit.apache.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Hi, On Thu, Feb 26, 2009 at 4:32 PM, Akil Ali 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