I am writing a Mule flow which expects xml as a input payload and returns xml output via http endpoint. I am performing some validation on the incoming xml and if it fails i want to return the same xml with some modification.
incoming xml:
<test>
<a>1</a>
<b>value1</b>
</test>
output xml:
<test>
<a>2</a>
<b>value2</b>
</test>
how can i update the xml values in Mule flow??