You could make use of this feature when you want to populate some values dynamically. So that later amendments could be done in the XML file.
The path could be in the following format after uploading the xml file into the web resources of the solution.
var xmlPath = "../WebResources/ConfigureAttributes.xml";
Sample xml file –ConfigureAttributes.xml
The contents of the xml file could be read using the following code.
var nodePath = "//attributes/attribute";
var doc = new ActiveXObject("Microsoft.XMLDOM");
doc.preserveWhiteSpace = true;
doc.async = false;
params = new Array();
nodelist = doc.selectNodes(nodePath);
for (var i = 0; i < nodelist.length; i++)
params[i] = nodelist(i).attributes.value;