Consider I have two xmls, xmlA
& xmlB
, and I want to update the 'text content' of xmlA/abc
with xmlB/bcd
.
xmlA:
<root>
<abc>texas</abc>
</root>
xmlB:
<root>
<abc>kansas</abc>
</root>
If I use xdmp:node-replace(xmlA/abc/text(), xmlB/bcd/text())
,
the node is getting changed and not the node content. That is
xmlA:
<root>
<bcd>kansas</bcd>
</root>
But I want to change only node's content. The desired output is: xmlA:
<root>
<abc>kansas</abc>
</root>
can someone tell me how to do this (without xpath 3.0)? Thanks (Ranjan).