Need URGENT help how to read xml string / xml tag value in web page using QTP - Printable Version +- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums) +-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP) +--- Forum: VB Scripting/Descriptive Programming (https://www.learnqtp.com/forums/Forum-VB-Scripting-Descriptive-Programming) +--- Thread: Need URGENT help how to read xml string / xml tag value in web page using QTP (/Thread-Need-URGENT-help-how-to-read-xml-string-xml-tag-value-in-web-page-using-QTP) |
Need URGENT help how to read xml string / xml tag value in web page using QTP - VQTP - 04-15-2009 Hi, I am navigating to a link which gives me xml data in web page (webXML) I need to read the value of one of the node attribute Please guide me how to read the xml string/xml tag value from web page in QTP Thanks. RE: Need URGENT help how to read xml string / xml tag value in web page using QTP - Tarik Sheth - 04-15-2009 You can use XML dom method to read the file. Sample code: Code: Const XMLDataFile = "C:\TestData.xml" RE: Need URGENT help how to read xml string / xml tag value in web page using QTP - VQTP - 04-16-2009 Thanks for the reply. But as I said I do not have any .xml file to read. I have one search URL which I have to hit in IE and the webpage displays me the the content in webpage that is actually a XML data. Following is the the content of the webpage which I have to read and extract the value for ''s:accessedDate" Code: <?xml version="1.0" encoding="UTF-8"?><dv:result xmlns:rss="http://........" xmlns:cl="http://xmlns......" xmlns:html="http://www......./xhtml" xmlns:time="http://xmlns......" xmlns:crx="http://www........" PLEASE SUGGEST |