commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dmitri Plotnikov" <dmi...@apache.org>
Subject Re: [JXPath] traversing into a List with JXPath
Date Fri, 11 Jun 2004 17:11:14 GMT
Andy,

It is supported and should work just fine.  I'll need more details to
diagnose the problem.

Make sure you are using the latest codebase, which can be found at

http://cvs.apache.org/builds/jakarta-commons/nightly/commons-jxpath/


- Dmitri

----- Original Message ----- 
From: "Andy Depue" <andy@marathon-man.com>
To: "Jakarta Commons Users List" <commons-user@jakarta.apache.org>
Sent: Friday, June 11, 2004 12:09 PM
Subject: [JXPath] traversing into a List with JXPath


> 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