Hi there, I need to be able to see and modify an xml value.
I used to be able to do so using xpath when the xml structure was:

<root>
  <employeeA>jones</employeeA>
  <employeeB>smith</employeeB>
</root>

by using /root/employeeA/text() to get "jones" but now the xml structure has changed to the following:

<root>
  <node1>
      <node2>
	  <employees name="employeeA" value="jones"/>
	  <employees name="employeeB" value="smith"/>
      </node2>
  </node1>
</root>

I've tried: /root/node1/node2/employees[@name='employeeA']/text() but it doesn't work, how do I use xpath to modify the value when it is set as an attribute!

Thanks in advanced

use predicate as if struxtur

so you write xpath as

/root/node1/node2/employees[@name='employeeA']/@value