The most common way would be to open the xml as a DOM tree. If it were a huge file of many megabytes then perhaps SAX would be better.
To read data using msxml then you would use something like this in JavaScript
:
Code:
var oDom = new ActiveXObject("Msxml2.DomDocument.4.0");
oDom.async = false;
oDom.load(<pathToFile>);
var sPath = "root/people/person[@id = 1]";
var oNode = oDom.selectSingleNode(sPath);
var sText = oNode.text;
//Display text 'Joe'
wher you xml file would be like
Code:
<root>
<people>
<person id="1">Fred</person>
<person id="2">Joe</person>
<person id="3">Tom</person>
</people>
</root>
Joe (MVP - xml)