I have an xml of type
<A>
<B1>
<C1 attri= "xyz"/>
</B1>
<B2>
<C2>
<D2> replace </D2>
</C2>
</B2>
<A>
My task is to check the C1 attribute, and if it is "xyz", replace the text "replace" with "New Text". Any ideas?
(...)<D2> New Text </D2>(...)?