JXPath 1.2 - get objects by class

2007-07-16 Thread P . Chauhan
Hi, Just wondering if it is possible to retrieve all objects of a specific class from an object tree including if they are contained somewhere in the list. Will this work Iterator iterator = context.iterate("//com.mycompany.MyObject.new()"); Thanks.

Re: JXPath 1.2 - get objects by class

2007-07-18 Thread P . Chauhan
Thanks Scott. I tried both ways but doesn't seem to work. It does return Iterator with one object of Boolean with false value. Though if I give an invalid class name then it does throw an error that class not found. Any suggestions? Thanks. - Parvez "Scott Heaberlin" <[EMAIL PROTECTED]>