consider the xml
<root>
<parent id="1">
<child>
<field name="1">
<value>abc</value>
</field>
<field name="2">
<value>cdf</value>
</field>
<field name="2">
<value>xyz</value>
</field>
<field name="1">
<value>uvw</value>
</field>
</child>
</parent>
<parent id="2">
<child>
<field name="1">
<value>123</value>
</field>
<field name="3">
<value>234</value>
</field>
<field name="4">
<value>34</value>
</field>
<field name="1">
<value>544</value>
</field>
</child>
</parent>
i want to update the text value of 'value' where 'name' attribute of field node is equal to '1'
here is what i have right now....
update newTable
set xmlcol.modify('replace value of(/root/parent/child/field[@name="1"]/value/text()) with "newValue"')
will this work for all occurrence or just first one???