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 QA specialist can identify when programmatic descriptions are useful?

1970


how can i pass a "cript"as a parameter in to a function

1454


What are the views available in qtp?

581


Hi All, How to get repeated word in string . Thanks Balaji

932


There are 10 rows in the datatable. How can we fetch 2 rows and then skip 3rd row. After that, pick 4th & 5th row and skip 6th row. Please share code

1209






How can we use the "CreateObject("Shell.Application")" in QTP and what is the definition and purpose of it?

3050


Hi all Can u give me the link where we can download full version of qtp my mail id is karthic.venkitapathi@gmail.com

1346


What Folder Structure following in Keyword Driven Frame work?

2278


What is a quick test professional?

624


iam working in QTP for 2+ of exp if i attend the interview what r questions asked in perfomence testing{loadrunner} ? pls any one can say answer to this question?

1598


How to connect to a database?

577


How to use userdifined environment variables.Once we created in Environment tab which is at File--> Settings-- >Environment-->Userdifined

1463


What are the methods used in UFT to handle exceptions or run-time errors?

642


How will you compare keyword and expert view?

524


what is profile tool?

1605