Loading local XML in IE

Space

New Member
Im trying to read a local xml file without using active-x in IE based on code from this site\[code\]var xml = document.createElement("xml");xml.src = 'http://stackoverflow.com/questions/12638583/file.xml';document.body.appendChild(xml);var xmlDocument = xml.XMLDocument;document.body.removeChild(xml);console.log(xml.XMLDocument); //undefinedconsole.log(xml); //<xml XMLDocument="[object]">\[/code\]What I need here is the \[code\][object]\[/code\] that contains my XML file. But I can't manage to fetch it (see above). Did I miss something obvious?
 
Back
Top