Code below can be used to read xml node value in qtp.
Set objXMLDoc = CreateObject("Microsoft.XMLDOM")
objXMLDoc.async = False
objXMLDoc.load("books.xml")
Set parentel= objXMLDoc.documentElement
Set cList = parentel.getElementsByTagName("book")
For Each E In cList
For Each E In cList
print E.Text
Next
This example will print all xml node values in QTP.
This example will print all xml node values in QTP.
No comments:
Post a Comment
Please Leave your reply. We value your feedback and inputs