In the below request policy, using Policy Type Transformation, I would like to read my whole XML content as it is without any changes. How I can achieve this without using xpath as below.
my whole XML is very big and may contain repetitive nodes as well.
input Request XML
<CustomerRequests>
<CustomerRequest>
<AgentReference>124</AgentReference>
</CustomerRequest>
</CustomerRequests>
<?xml version="1.0" encoding="UTF-8"?>
<jsonTransform continueOnError="false" displayName="JSON transform Policy-example"
enabled="true" name="JSON-Tranform-example" version="1.0"
xmlns="http://www.infor.com/ion/api" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.infor.com/ion/api jsonTransform.xsd">
<transformations>
<transform kind="handlebars" outputType="application/xml">
<![CDATA[<?xml version="1.0" encoding="UTF-8"?>
<messageRequest>
<documentName>Anydocument</documentName>
<messageId>msgID#{{ceil (random 1 10000)}}</messageId>
<fromLogicalId>lid://infor.api.ipstogismissingparcelinfo</fromLogicalId>
<toLogicalId>lid://default</toLogicalId>
<document>
<value><![CDATA[
<CustomerRequest>
<AgentReference>{{CustomerRequest/AgentReference}}</AgentReference>
</CustomerRequest>]]]]><![CDATA[></value>
<encoding>NONE</encoding>
<characterSet>UTF-8</characterSet>
</document>
<additionalProperties>
</additionalProperties>
</messageRequest>]]>
</transform>
</transformations>
</jsonTransform>