/**
 * Cross-browser XML handling
 */
 
var XML = {
	/**
	 * Get an XML object from the object returned in the XMLHTTPResponse
	 * This will always be XHTML or XML
	 */
	getXMLObject: function(xhrObject) {
		if(/MSIE/.test(navigator.userAgent) && !window.opera) {
	    	var xmlObject = new ActiveXObject("Microsoft.XMLDOM");
			xmlObject.async="false";
			xmlObject.loadXML(xhrObject.responseText);
		} else {
			var xmlObject = (new DOMParser()).parseFromString(xhrObject.responseText, "text/xml");
		}
		return xmlObject;
	}

}


