read data from XML file - Testcomplete
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-04-2015
01:28 PM
08-04-2015
01:28 PM
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
1 REPLY 1
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-05-2015
05:38 AM
08-05-2015
05:38 AM
I have figured it out, I used attributes and childnodes.
Thanks
