Ask a Question

Data Retrival from Xml

SOLVED
Krishna_Kumar
Contributor

Data Retrival from Xml

Hi Team, I want retrieve the "Name" and "Value" of ecah and every "Variable" nodes using javascript. i have attached the Image of my XMl file. Can you please help me to achieve this. waiting for your response. Kind regards, Sathish Kumark K
1 REPLY 1
tristaanogre
Esteemed Contributor

Look into instantiating the MSXML2.DOMDocument object in your code.  You can then import the XML into that object and use the various methods available to the object to iterate through child nodes that match a particular pattern.

 

https://docs.microsoft.com/en-us/previous-versions/windows/desktop/ms756987(v%3Dvs.85)

 

https://support.smartbear.com/testcomplete/docs/testing-with/advanced/working-with-external-data-sou...


Robert Martin
[Hall of Fame]
Please consider giving a Kudo if I write good stuff
----

Why automate?  I do automated testing because there's only so much a human being can do and remain healthy.  Sleep is a requirement.  So, while people sleep, automation that I create does what I've described above in order to make sure that nothing gets past the final defense of the testing group.
I love good food, good books, good friends, and good fun.

Mysterious Gremlin Master
Vegas Thrill Rider
Extensions available
cancel
Showing results for 
Search instead for 
Did you mean: