matty
Scripting Guru
Posts: 8336 Reputation: 109
39 / /
Joined: Dec 2002
Status: Away
|
RE: Reading a data file
js code: function loadXML(fileName) {
// Create the XML object
var XML = new ActiveXObject ('MSXML.DOMDocument') ;
XML.async = false;
XML.load(fileName);
var playerName = XML.selectSingleNode('//root/player/name').text;
}
|
|