Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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

i have two questions for regular expression :- Q1. I have date pattern eg-29/11/2011 29-11-2011 29.11.2011 Que- if any separator is there between date,month and year pattern should match else it should not match eg- pattern should not match in case of 2911-2011 Q2. let say i have a string and there is a number in between of that string eg.-Amount 30002.234 successfully credited to your account . now i have to match this pattern in such a way that even if decimal is not there pattern should match ,how i will do this using regular expression

1465


What is a Patch in QTP?

1059


How to release all resources file from the QTP?

1575


How does quicktest professional identifies the object in the application?

995


What are the key elements available in test result window?

1194


What are the differences between quicktest professional (qtp) and winrunner?

1064


what kind of frame work you used in your last project?

2331


How can you write the scripts that operate on different objects depending on run-time information?

2602


How can you exit from an action?

1069


what is Property......End Property loop? how to write sript for it in QTP

2401


In an interview, what r the general questions asked in SQL which is realted to testing ?pls give me anwser to this question?

2015


What is the qtp testing process?

1055


Is it possible to call win runner script in qtp?

1082


if our qtp vb Script may be Currepted then What we want do?

1916


What is use of object spy?

1087