Thanks a ton, Alex! Regards Anit
-----Original Message----- From: Alexander Klimetschek [mailto:[email protected]] Sent: Monday, September 14, 2009 3:34 AM To: [email protected] Subject: Re: Retrieving an object from a node based on a property attribute On Fri, Sep 11, 2009 at 18:28, Phukan, Anit <[email protected]> wrote: > I just need to get an object back from a node based on a node attribute > that I specify. You can use a query. With Xpath this would look like this: //element(*, my:nodetype)[...@property = 'value'] Have a look at the JCR 1.0 specification [1], sections 6.6 and/or 8.5. [1] http://jcp.org/en/jsr/detail?id=170 Regards, Alex -- Alexander Klimetschek [email protected]
