how to copy specific data from different xml in same folder to other single new xml located at different location in Test Complete Jscript



Input data


(their are 100's of these types of files contaning same fields )



<?xml version="xxxxxxx"?>
<name="XXX" project="YYY" module="Module1" macro="macro1">
<keywords>ABC</keywords>
<bFile href="some location"/>
<tFile href="some location"/>
<sFile href="some location"/>
<distance="some value"/>


Node in New XML file


(above should be copied in new file i.e generate 1 file from above 100)



<T_uniqueNumber_name library="commom library name" function="common fun">
<testLabel> [above name] </testLabel>
<bFile> [file name from above bFile]</bFile>
<sFile>File name from above sFile Node</sFile>
<oFile>file name from above tFile node</oFile>
<rFile><some constant log file></reportFile>
</T_uniqueNumber_name>

No comments:

Post a Comment