function DOMDocument() 
{
	this.documentElement;
	this.loadXML = function(XMLStr) {
		if(Constants.isIE)
		{
			var doc = new ActiveXObject("Msxml2.DOMDocument");
			try {
				doc.loadXML(XMLStr);
			}
			catch(e){
				debug.error("DOMDocument failed while trying to parse the XMLStr: \n" + XMLStr)
			}
		}
		else if (Constants.isMoz)
		{
			var parser = new DOMParser();
			try {
				var doc = parser.parseFromString(XMLStr, "text/xml");
			}
			catch(e){
				debug.error("DOMDocument failed while trying to parse the XMLStr: \n" + XMLStr)
			}
		}
		this.documentElement = doc.documentElement;
	}
}

function getTextFromNode(node)
{
	if(Constants.isIE)
		return node.text
	else if (Constants.isMoz)
		return node.childNodes[0].nodeValue
}