Hi,
I was trying to concatenate 2 XMLs using the evaluate xpath assertion and add and remove element assertion but I was having an issue with name spaces not resolving. example below
lets say i get the below XML from the caller
<x:root xmlns:x="http://test.com/text">
<x:child>
<x:grandChild>
000
</x:grandChild>
</x:child>
</x:root>
with the below XML saved server side
<y:root xmlns:y="http://test.com/text">
<y:child1>
111
</y:child1>
</y:root>
and i need to produce the below XML before sending to back end.
<y:root xmlns:y="http://test.com/text">
<y:child1>
222
</y:child1>
<y:child>
<y:grandChild>
111
</y:grandChild>
</y:child>
</y:root>
the issue I'm facing is that the xPath is maintaining the same prefix even though it is referencing the same name space so the resulting XML is invalid as below
<y:root xmlns:y="http://test.com/text">
<y:child1>
222
</y:child1>
<x:child>
<x:grandChild>
111
</x:grandChild>
</x:child>
</y:root>
thanks in advance ( I have attached a sample policy for what I'm trying to do)