var doc = document.implementation.createDocument('', 'dummy', null);
doc.load('test.xml');
Thanks in advance, Steve.
You can use XMLHttpRequest (with IE 7 and 8) respectively new
ActiveXObject('Msxml2.XMLHTTP') in IE 6 (or older) to load the XML
document, then access the responseXML property to have an XML DOM document.
Or use
var doc = new ActiveXObject('Msxml2.DOMDocument');
doc.onreadystatechange = function ()
{
if (doc.readyState === 4)
{
// now use doc here
}
};
doc.load('test.xml');
that should work as long as scripting of ActiveX objects is enabled.
--
Martin Honnen
http://JavaScript.FAQTs.com/