Forum Moderators: open
Set xml = Server.CreateObject("MSXML2.FreeThreadedDomDocument.3.0")
xml.async = False
xml.loadXml(xmlhttp.responseText)Set root = xml.documentElement
Set hotelname = root.selectNodes("NexRes")
For Each name In hotelname
clientid = name.selectSingleNode("response/customer/clientId").text
totalrate = name.selectSingleNode("response/rateInfo/totalRate").text
hotelid = name.selectSingleNode("request/hotelID").text
confid = name.selectSingleNode("response/confirmationNumber").text
Next
response.write(clientid & totalrate & hotelid & confid)
<NexRes product="Hotel">
<response status="success" type="BookReservation" timestamp="07/02/2004 15:51:14">
<customer>
<clientID></clientID>
</customer>
<rateInfo>
<totalRate></totalRate>
</rateInfo>
<confirmationNumber></confirmationNumber>
</response>
<request></reqeust>
</NexRes>