Hi,
how do i loop through and display companies details
have tried
how do i loop through and display companies details
have tried
Code:
set nodes = xml.selectNodesset nodes = xml.selectNodes("/QuotesResponse/QuotesResult/InsuranceCalculationResult/Calculations/CalculationCalculation/Companies/Company")
for each N in nodes
Response.Write N.text & "<br>"
next
Code:
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:soap="[URL unfurl="true"]http://schemas.xmlsoap.org/soap/envelope/"[/URL] xmlns:xsi="[URL unfurl="true"]http://www.w3.org/2001/XMLSchema-instance"[/URL] xmlns:xsd="[URL unfurl="true"]http://www.w3.org/2001/XMLSchema">[/URL]
<soap:Body>
<QuotesResponse xmlns="">
<QuotesResult>
<InsuranceCalculationResult xmlns="">
<CustomerDetailsForm>
<Url></Url>
<DisplayText>Change customer details</DisplayText>
</CustomerDetailsForm>
<Calculations>
<Calculation>
<Vehicle>
<CapId>12345</CapId>
<VehicleYear>2002</VehicleYear>
</Vehicle>
<Companies>
<Company id="12" bestquote="true">
<CampaignId>143</CampaignId>
<Name><![CDATA[Highway Insurance]]></Name>
<LogoUrl>image.png</LogoUrl>
<AnnualPremium>493.35</AnnualPremium>
<MonthlyPremium>44.81</MonthlyPremium>
<MonthlyPremiumDetails>
<Deposit>82.23</Deposit>
<NumberOfPayments>10</NumberOfPayments>
<TotalAmountPayable>530.33</TotalAmountPayable>
<Apr>21.0</Apr>
</MonthlyPremiumDetails>
<RestrictionApplies>False</RestrictionApplies>
<Urls>
<Logo>image.png</Logo>
<ReviewAndBuy></ReviewAndBuy>
<KeyFacts></KeyFacts>
</Urls>
</Company>
</Companies>
</Calculation>
</Calculations>
</InsuranceCalculationResult>
</QuotesResult>
</QuotesResponse>
</soap:Body>
</soap:Envelope>