We have some partners that send there product orders via an XML file. Wich they send to our server using FTP. A windows command line script will take it from the FTP server ans send it to our AS400/System I. Where it will be processed into a registered order. Now are we starting to work with a new partner wich sends us XML in the same way a other partners the only problem is that this XML is made of 1 long line of code in stet of a pretty print lay out. This is a problem for the AS400 program. I would like to ad some code in the Windows command line script to get a line break after each end tag For example Here is a part of the original XML
<?xml version="1.0" encoding="UTF-8"?><czavinh3 xmlns="urn:com.sap.b1i.vplatform:entity"><envelope><sender>Lottum</sender><receiver>8714253093123</receiver></envelope><message><docnum>1122259</docnum><docdtm>2015-09-28</docdtm><txts>test1234</txts>
Here is an example of what the as400 wants
<?xml version="1.0" encoding="UTF-8"?>
<czavinh3 xmlns="urn:com.sap.b1i.vplatform:entity">
<envelope>
<sender>Lottum</sender>
<receiver>8714253093123</receiver>
</envelope>
<message>
<docnum>1122259</docnum>
<docdtm>2015-09-28</docdtm>
<txts>test1234</txts>
I think the fastest way is to search and replace the >< for a >(enter)< this is easily done bye hand bud i have no idea how to automate this