These links might also help.... http://motevich.blogspot.com/2008/09/how-to-read-xml-file-from-qtp_08.html
http://motevich.blogspot.com/2008/09/how-to-update-xml-file-from-qtp.html Regards Shalabh Dixit On Wed, May 4, 2011 at 9:00 AM, Suresh Bhandari (Mahindra Satyam) < [email protected]> wrote: > U can use Microsoft.XMLDOM object to handel XML operations. > > Check below example > > Set xmlDoc = CreateObject("Microsoft.XMLDOM") > > xmlDoc.Async = False > > xmlDoc.Load(XMLDataFile) 'XMLDataFile ur xml file path > > Set nodes = xmlDoc.SelectNodes("/option()") > > ' get node values > > > 'to print all values from option > > For i = 0 To (nodes.Length - 1) > > Value = nodes(i).NodeValue > > MsgBox Value > > Next > > > > > > On Tue, May 3, 2011 at 1:52 PM, Karthikeyan < > [email protected]> wrote: > >> Hi all, >> >> I have a requirement as below. >> >> I get a dynamic string as follows: >> <OPTION value=""></OPTION> <OPTION value=DENYALL>Deny All</OPTION><OPTION >> value=DENYENTRY>Deny Entry</OPTION><OPTION value=DENYEXIT>Deny >> Exit</OPTION><OPTION value=UNRESTRICT selected>Unrestricted</OPTION> >> >> My requirement is: to read all the "value" attributes in the above string. >> Is there a simple way to do that. Is it possible to save this string as an >> XML and read the attributes for each "OPTION" node? >> >> Please suggest/guide me few solutions. >> >> Regards, >> Karthikeyan >> >> -- >> You received this message because you are subscribed to the Google >> "QTP - HP Quick Test Professional - Automated Software Testing" >> group. >> To post to this group, send email to [email protected] >> To unsubscribe from this group, send email to >> [email protected] >> For more options, visit this group at >> http://groups.google.com/group/MercuryQTP?hl=en > > > -- > You received this message because you are subscribed to the Google > "QTP - HP Quick Test Professional - Automated Software Testing" > group. > To post to this group, send email to [email protected] > To unsubscribe from this group, send email to > [email protected] > For more options, visit this group at > http://groups.google.com/group/MercuryQTP?hl=en > -- You received this message because you are subscribed to the Google "QTP - HP Quick Test Professional - Automated Software Testing" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/MercuryQTP?hl=en
