Never-mind... I've figured it out. It just took some getting used to using more parts of XPath. The path "/[EMAIL PROTECTED]'man']" gave me the result I was looking for. It's really simple and I'm embarrassed that the answer escaped me for so long.

Thanks.

Paul

On Feb 15, 2006, at 3:04 PM, Paul DeCoursey wrote:


I have a List (a Vector to be specific) that has nothing except HashMaps in it with all sorts of values in them.. What I am trying to get is find
a fast way to get the specific HashMap that has a key with a specific
value in it.  I thought that JXPath was the way to get but it doesn't
appear to be treating the HashMaps as seperate objects.  I can find out
if one exists with the specific value, and I can set values but I cannot set a value for a field on a HashMap with a specific value on another key...

Example:

[{ID: dude, NAME: Pen}, {ID: man, NAME: Crayon}, {ID: sir, NAME: Pencil}]

How can I set the NAME property of the Hash with the ID man?

Paul


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to