Can anyone help to write the BATCH program to read the tag element value from XML file and if that value matched with the one you need then export the name of XML file to Excel.
suppose in folder there are 20 XML files, this script should read the specific tag element value from XML file and based on that it should export the XML file name to excel/csv/txt. so may be output txt/csv/excel file will have 5 xml file name which matches your criteria
ex. Folder TEST have 20 XML files, test1.xml, test2.xml and so on...
test1.xml sample would be like below...we need to check value and based on that export the name of the file to text/csv/excel.....
<?xml version="1.0" encoding="UTF-8"?>
-<sh:StandardBusinessDocumentHeader>
<sh:HeaderVersion>1.0</sh:HeaderVersion>
-<sh:Sender>
<sh:Identifier>3015060500992</sh:Identifier>
</sh:Sender>
-<sh:Receiver>
<sh:Identifier>4539594000005</sh:Identifier>
</sh:Receiver>
-<sh:DocumentIdentification>
<sh:Standard>EAN.UCC</sh:Standard>
<sh:TypeVersion>2.5</sh:TypeVersion>
<sh:InstanceIdentifier>SBDH_4539594000005_tt7x7c71fof8d9adenhr</sh:InstanceIdentifier>
<sh:Type>multiShipmentOrder</sh:Type>
<sh:MultipleType>false</sh:MultipleType>
<sh:CreationDateAndTime>2013-04-09T11:08:54</sh:CreationDateAndTime>
</sh:DocumentIdentification>
</sh:StandardBusinessDocumentHeader>
Regards, Parag
read the specific tag element valuewhich one?