<?xml version="1.0"?>
<Results>
<Table>
<VehicleUnitNumber>1</VehicleUnitNumber>
<VIN>1D7RB1CT3AS245917</VIN>
<OperatingRadius>Local (up to 50 miles)</OperatingRadius>
<RegistrationState>FL</RegistrationState>
<GaragedState>FL</GaragedState>
<ModelYear>2010</ModelYear>
<Make>Dodge</Make>
<Model>Ram</Model>
<VehicleTypeDesc>Private Passenger</VehicleTypeDesc>
<WeightClass>Light</WeightClass>
<CostNew>45000</CostNew>
</Table>
</Results>
Hi. I am new to vba coding and I have been trying to access the different elements in the XML using vba. I have tried out the following code unsuccessfully:
request.getElementsByTagName("VehicleUnitNumber").item(0).text
Any have tried the other solutions on Stack Overflow. Any help is appreciated.