how to retrieve the xml file data through qtp. can anybody
send script for this..

Answer Posted / mogal

Set oXML = CreateObject("Microsoft.XMLDOM")
XMLFilePath = "C:Book.xml"
oXML.Load (XMLFilePath)
Set BooksNameNode = oXML.SelectNodes("*//book/name/text()") 'Selecting all name nodes under book node
For i = 0 To (BooksNameNode.Length - 1)
BookName = BooksNameNode(i).NodeValue
MsgBox BookName
Next

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to use output values in qtp ?

554


How to use the object spy in quicktest professional 8.0 version?

546


Hi All , How can we decicde for pariticular frame(DataDriven or Keword Driven)in Project? Thanks Balaji

1378


Without integrating QC/Testdirector with QTP, is it possible to keep track of the defects?If yes how? How to export QTP results to an excel sheet?

1492


Hi Friendss..., can any body help me.. 1. Tell me your achievements(Technically)..? 2. Tell me your strengths(Technically) and weakness(Technical)..? 3. Why are you looking for change..?

1420






What are the different properties of an web object

1428


What is meant by Output Value in UFT?

567


How many lines of code in each script of QTP?

4036


who QTP recognizes the object stored in object repository?

1663


How to export quicktest professional (qtp) results to an .xls file?

600


What is a data driven test in qtp?

586


What is the extension of QTP local Repository? If it is .mtr then what is .bdb extension stands for?

584


Client is able to provide budget..he want you to choose the automation tool for the web application? which one you will select ? QTP or Selenium ? what are the reasons?

1229


What is exact meaning of Database Checkpoint in QTP 9.2 and what are the different types of the database check points?

2267


Can we record using all the modes in a single script? Explanation with example is appreciated

1390