commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject Re: [jxpath] how to get map key values?
Date Tue, 29 Mar 2011 16:40:45 GMT
Matt, thanks for the idea. Unfortunately, my mileage did vary. I wrapped the map in a 

  public class Container {
    Object o;

    public Object getO() {
      return o;

    public void setO(Object o) {
      this.o = o;

and '@name', 'o/@name', etc. didn't work....

IIRC, JXPath doesn't like lists, maps, etc. at the root level.  Wrap
these in something, e.g. [lang] MutableObject or whatever container
you like, then try @name.  This is all from memory,


  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message