Im using axios, if that matters. Im using using GetSearchResults.htm? api
The api works, I get all the xml data. I am having issues accessing specific data from Zillows api, everything I tried is coming back undefined.
Part of the axios get I am using to retrieve the data
.then(function(res){
console.log(res.data)
})
The results come like below.... I would for example want to access request.address I have tried
res.data.request['address']
res.data.request.address
res.data.searchresults.request['address']
res.data.searchresults.request.address
<?xml version="1.0" encoding="utf-8"?>
<SearchResults:searchresults cut to format">
<request>
<address>Some address here</address>
<citystatezip>some city here, ca</citystatezip>
</request>
<message>
<text>Request successfully processed</text>
<code>0</code>
</message>
<response>
<results>
<result>
<zpid>some zipid here</zpid>