Forum Discussion

sshah1's avatar
sshah1
Contributor
10 years ago

read data from XML file - Testcomplete

Hi,

I am writing Jscript function to read some values from the XML file. Within Parent Node, it has 99 occurances of "array" nodes. I need to get data from specific array node which has namespace "string".

I need to get value stored in arrayitem node. See below.

 

*************************************************************

<array name="highmto__resw1">
<arrayitem index="1" type="float">0.03111535</arrayitem>
<arrayitem index="2" type="empty"></arrayitem>
<arrayitem index="3" type="empty"></arrayitem>
<arrayitem index="4" type="empty"></arrayitem>
<arrayitem index="5" type="empty"></arrayitem>
</array>

**************************************************************

 

Thanks,

Samixa

  • I have figured it out, I used attributes and childnodes.

    Thanks