with (classes) {

with (XML) {

if (classes.DOMParser) XML.DOMParser = classes.DOMParser;
else {

XML.DOMParser = function ()
{
 return this;
}

DOMParser.prototype.parseFromString = function (str, contentType)
{
 // IE specific

 var The_XMLDocument = new ActiveXObject("Msxml2.DOMDocument");

 if (! The_XMLDocument) return null;
 
 The_XMLDocument.loadXML(str);

 return dom.Document.call(The_XMLDocument);
}

}

}

}
