Before I begin my question: Last time I asked this question a couple of you posted helpful links to parsing the XML. But my question is asking how to get the XML information into a string variable in the first place. It is NOT a duplicate of those links.
Hopefully my question makes sense. But I am trying to store the XML I get from the Google geocode API (https://developers.google.com/maps/documentation/geocoding/intro) so I can autoformat addresses that people type into some fields.
Essentially I am looking for a Javascript equivalent of =WEBSERVICE([URL])
in MS Excel.
The idea is to retrieve the address fields that people type, put it into the geocode URL, store the XML as a string (this is the step I am having trouble with), and then set the fields to the results gotten from the API.