04-08-2013, 03:04 PM
(This post was last modified: 04-08-2013, 03:05 PM by SweetyChowdhury.)
Hi All,
Please see the XML file format that I need to read and extract the value of a particular node (have multiple elements under it) in an array through QTP 11v.
From the above XML file ,I need to get the element values under the node TOOL and BOOK into 2 separate arrays.
Can somebody please help on the same.
Please see the XML file format that I need to read and extract the value of a particular node (have multiple elements under it) in an array through QTP 11v.
Code:
<MasterData>
<Version 1.0>
<SerialNumer> 1111 </SerialNumber>
<FirstData>
<Item 1>
<Item 2>
<FAT>...</FAT>
<THIN>...</THIN>
<TOOL>
<VersionNumber>1</VersionNumber>
<Type>0</Type>
<ListNumber>0</ListNumber>
</TOOL>
<BOOK>
<Reason>0</Reason>
<Number>1</Number>
<Load>0</Load>
</BOOK>
</FirstData>
<SecondData>
<Item 1>
<Item 2>
</SecondData>
</MasterData>
Can somebody please help on the same.