commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andy Depue <a...@marathon-man.com>
Subject [JXPath] traversing into a List with JXPath
Date Fri, 11 Jun 2004 16:09:18 GMT
Should I not be able to select objects out of a List property using JXPath? 
Say I have a property accessor defined thus:
  public List getRelations();

Should not this XPath return an iterator over objects in the List that contain 
an 'entity' property set to 'Sales'?
  //relations[entity='Sales']
However, this returns nothing, even though such objects do exist in the list.
Any ideas?  If this is not supported by JXPath, is it possible for me to 
customize JXPath to support it in my case?

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org


Mime
View raw message