commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fovea1959-apa...@yahoo.com
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,
 YMMV.

Matt

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