I have example XML in one of the table column:
<Root>
<A>
<C>c</C>
<D>d</D>
</A>
<B>b</B>
</Root>
How can I replace value of A node into something like that:
<Root>
<A>
<E>e</E>
<F>f</F>
</A>
<B>b</B>
</Root>
I tried the following solution
DECLARE @var varchar(100);
SET @var = '<E>e</E><F>f</F>'
SET @xml.modify('replace value of (/Root/A/text())[1] with sql:variable("@var")');
but it did not work...
regards