Saturday, January 30, 2010

How to move /transfer text from XML file to QTP DataTable.

XMLUtil-6: How to move /transfer text from XML file to QTP DataTable.

XML file used:


Result of the above code run is as seen below which you can see in the Test results window. Obviously this code can be made more intelligent. You can always modify it according to your need.


Below is another variant of the above code, but may not be as flexible.

 

Result of the above code run is as seen below which you can see in the Test results window. Obviously this code can be made more intelligent. You can always modify it according to your need.


Also See:
How to find total number of child elements.
How to view ALL elements in a message box, one at a time.
How to view the VALUE of elements in a message box, one at a time.
How to get the NAME of the root element, get the COUNT of child
elements of root, get COUNT & NAMES of children of any child element of root.

How to create a new XML file.
How to compare two XML files.