Re: JXPath 1.2 - get objects by class

2007-07-18 Thread P . Chauhan
/07/2007 02:44 Please respond to Jakarta Commons Users List commons-user@jakarta.apache.org To Jakarta Commons Users List commons-user@jakarta.apache.org cc Subject Re: JXPath 1.2 - get objects by class .new() will instantiate one instance. Try using getClass() as a pseudo property

Re: JXPath 1.2 - get objects by class

2007-07-18 Thread Sergey Vladimirov
Parvez, Try this variant: //[EMAIL PROTECTED]/name='com.mycompany.MyObject'] Previous variant just checked if there was such objects. This variant should select them. -- Sergey Vladimirov

Re: JXPath 1.2 - get objects by class

2007-07-16 Thread Scott Heaberlin
.new() will instantiate one instance. Try using getClass() as a pseudo property (the introspector treats this as a read-only property. Something along these lines: Iterator iterator = context.iterate(//@class=java.lang.Class.forName('com.mycompany.MyObject')); You may even be able to get away