Hi all,
I’ve invoked a Rest web service (Accepting application/xml) using HTTPConnector. Now I just want to manipulate some fields from this response XML to a new XML file. The web service response XML looks like the one below,
<?xml version='1.0' encoding='UTF-8'?>
<product>
<code>100191</code>
<categories>
<category>
<code>snow</code>
<url>/Collections/Snow/c/snow</url>
</category>
<category>
<code>Armada</code>
<url>/Brands/Armada/c/Armada</url>
</category>
</categories>
</product>
The new XML which is to be created out of the above will have the following structure,
<Products>
<Product>
<ExternalId>100191</ExternalId>
<Categories>
<Category>snow</Category>
<Category>Armada</Category>
</Categories>
</Product>
</Products>
Any help to achieve this? Please let me know if you need more information.