/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
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
.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