I have the following XML
<Root xmlns:test="http://sample">
<Values>
<Value xmlns:d3p1="http://www.w3.org/2001/XMLSchema-instance" d3p1:type="1">
</Value>
<Value xmlns:d3p1="http://www.w3.org/2001/XMLSchema-instance" d3p1:type="1">
</Value>
<Value xmlns:d3p1="http://www.w3.org/2001/XMLSchema-instance" d3p1:type="2">
</Value>
<Value xmlns:d3p1="http://www.w3.org/2001/XMLSchema-instance" d3p1:type="2">
</Value>
<Value xmlns:d3p1="http://www.w3.org/2001/XMLSchema-instance" d3p1:type="1">
</Value>
</Values>
</Root>
Here I am trying to update all value elements with type=2 to type = 3.
Please can somebody tell me how this can be done?