commons-user  

JXPath 1.2 - get objects by class

P . Chauhan
Mon, 16 Jul 2007 07:39:03 -0700

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.