qtp script for updating values in xml file - 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: UFT / QTP Beginners (https://www.learnqtp.com/forums/Forum-UFT-QTP-Beginners) +--- Thread: qtp script for updating values in xml file (/Thread-qtp-script-for-updating-values-in-xml-file) |
qtp script for updating values in xml file - automation2012 - 11-30-2012 i have xml file with some text inside the file. i need a script in such a way..qtp should open this xml file in notepad format...and it should be able to edit the existing values in the file and again it has to save that file in xml format XML code mentioned below.....I have to update the TimeStamp, Source ID and RxNum everytime when i run the script and these values should be updated into excel file... Please help me. Code: <?xml version="1.0" encoding="UTF-8" standalone="yes"?> RE: qtp script for updating values in xml file - harishshenoy - 12-04-2012 Code: XMLDataFile = "file path" Harish RE: qtp script for updating values in xml file - Lavanya N - 11-30-2015 Hi All I tried the above mentioned logic but i'm getting "object Required: 'node'" error. Can anyone please help me on this ? My code: Code: Set xmlDoc = CreateObject("Microsoft.XMLDOM") RE: qtp script for updating values in xml file - Lavanya N - 11-30-2015 Hi All Can anyone please help me on my above mentioned issue i am badly in need of advice on this. Very urgent Please !!! Also I tried with below code. I am getting below error: "Object does'nt support this property or method: nodes.Text" Code: Set xmlDoc = CreateObject("Microsoft.XMLDOM") |