Madhulikha
Programmer
Hi,
I am new to XML & XSLT. I have a requirement which I have 1000 XML files to be modified.
The XML files which has retInformation (which is optional)
needs to be modified.
The label type && email elements under retInformation should be moved to SHIP block after the elment <serviceType> in the same XML file. pls let me know if you have any questions.
<?xml version="1.0" encoding="UTF-8"?>
<root>
<sampleXml>
<sample>
<ship>
<serviceType>Ground</serviceType>
<packageType>Your Package</packageType>
<retInformation>
<LabelType>ABC</LabelType>
<email>test@test.com</email>
<expirationDate>Date(1d)</expirationDate>
</retInformation>
<referenceInfo>
<yourReference xsi:nil="true"/>
<purchaseOrderNumber xsi:nil="true"/>
<invoiceNumber xsi:nil="true"/>
<departmentNumber xsi:nil="true"/>
</referenceInfo>
</ship>
</sample>
</sampleXML>
</root>
I am new to XML & XSLT. I have a requirement which I have 1000 XML files to be modified.
The XML files which has retInformation (which is optional)
needs to be modified.
The label type && email elements under retInformation should be moved to SHIP block after the elment <serviceType> in the same XML file. pls let me know if you have any questions.
<?xml version="1.0" encoding="UTF-8"?>
<root>
<sampleXml>
<sample>
<ship>
<serviceType>Ground</serviceType>
<packageType>Your Package</packageType>
<retInformation>
<LabelType>ABC</LabelType>
<email>test@test.com</email>
<expirationDate>Date(1d)</expirationDate>
</retInformation>
<referenceInfo>
<yourReference xsi:nil="true"/>
<purchaseOrderNumber xsi:nil="true"/>
<invoiceNumber xsi:nil="true"/>
<departmentNumber xsi:nil="true"/>
</referenceInfo>
</ship>
</sample>
</sampleXML>
</root>