This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Step 1, store the XML in a string | |
// Replace the string with the actual, full XML content copied as-is | |
// from Address.settings | |
var xml = '...'; | |
// Step 2, parse the XML | |
// See https://www.w3schools.com/xml/xml_parser.asp | |
var parser = new DOMParser(); | |
var xmlDoc = parser.parseFromString(xml, "text/xml"); |