In my Vue app, I get a XML file with Axios and use parseString to parse XML as JSON. I then need to pass the result to Vue data (this.events). My console log shows
result
Try not to use this inside parseString, maybe it's a scope issue, which means this isn't referring to the vue data object.
this
parseString
Try this:
axios.get('http://url.to/events.xml') .then(response => { var self = this; parseString(response.data, function (err, result) { self.events = result }); }) }