Microsoft XMLDOM object will work only in Internet Explorer, since it requires Microsoft ActiveX support to work.
To load XMLDOM object in IE, you should use the following:
xmlDoc = new ActiveXObject(""Microsoft.XMLDOM"");
The browsers, such as Mozilla, Firefox, Safari has XMLDOM built-in. You can create object in Javascript using:
xmlDoc = document.implementation.createDocument("""","""",null);