I want to replace the value in an attribute in a XML. This attribute comes multiple times in the xml. How can i replace these all at once
my xml lools some what like below :
<Example>
<A>
<B Type = "x">qqq</B>
<B Type = "x">www</B>
</A>
<C>
<D Type = "x">aaa</D>
<D Type = "x">uuu</D>
</C>
</Example>
I want to replace all x with y
You can try the following. Here ns2zarejestrujStanZgodyAsync is main node and I have updated the value of idSystemy from 13 to 38.
You can check for demo here- XML Node Update
You can not replace all at once using replace value of (XML DML). You have to do it in a loop.
Result:
Update
Replace values x and z with y:
Replace all values with y: