Change value of a node in an xml
Posted: Wed Oct 09, 2019 1:29 pm
Sometimes I need to change the value of the key sku inside of the xml files we receive from our customer. The sku sometimes needs to be changed to CCSE-9999 due to production changes.
In order to make it easier for my colleagues to do this I'm thinking about setting up a small flow where they can drop the incoming xml and then the modified xml will replace the old xml.
The xml looks like this:
How can I do this?
Thanks in advance
In order to make it easier for my colleagues to do this I'm thinking about setting up a small flow where they can drop the incoming xml and then the modified xml will replace the old xml.
The xml looks like this:
Code: Select all
<?xml version="1.0"?>
<order>
<orderId>9986613</orderId>
<incrementId>XXXXXX</incrementId>
<versionNumber>1</versionNumber>
<name>XXXXX</name>
<createdDate>2019-10-08T17:53:59+0200</createdDate>
<orderDate>2019-10-08T15:51:38+0200</orderDate>
<description>Adshel, Eurosize (1185x1750mm), OFFSET 4+3</description>
<sku>CCNO-04</sku>
<externalOrderId>108573</externalOrderId>
</order>
Thanks in advance