How to retrieve the particular child element value from winhttp respons
I am doing RTG tests using winHttpRequest.
I am able to get the response through responseText = cstr(reqobj.ResponseText)
now i have to get the value from response i.e between two tags like <bookname>qatest</bookname>
this is not an array....
You have to save the content as an XML file using FileSystemObject.
From then, you can do all your navigations. Refer XML DOM >> Node >> childNodes | DevGuru
Thank/Like to help others if my input helped you !!!
I am speaking for myself, not for my employer nor any one.
You don't necessarily have to save it as a file. You could do something like this to get it into an xml object:
Set oXML = XMLUtil.CreateXML
From there you can use xpath to find your values.
sVal = oXML.ChildElementsByPath("/bookname").Item(1).Value