function()
	{
		var doc = null;
		
		if (document.implementation && document.implementation.createDocument)
		{
			doc = document.implementation.createDocument('', '', null);
		}
		else if (window.ActiveXObject)
		{
			doc = new ActiveXObject('Microsoft.XMLDOM');
	 	}
	 	
	 	return doc;
	}
function()
	{
		var doc = null;
		
		if (document.implementation && document.implementation.createDocument)
		{
			doc = document.implementation.createDocument('', '', null);
		}
		else if (window.ActiveXObject)
		{
			doc = new ActiveXObject('Microsoft.XMLDOM');
	 	}
	 	
	 	return doc;
	}
function ( ) { var doc = null ; if ( document . implementation && document . implementation . createDocument ) { doc = document . implementation . createDocument ( '' , '' , null ) ; } else if ( window . ActiveXObject ) { doc = new ActiveXObject ( 'Microsoft.XMLDOM' ) ; } return doc ; }
Function: createXmlDocument

Returns a new, empty XML document.
Function : createXmlDocument
Returns a document object