

function loadXml( p_sXml )
{
	var oDoc = null;

	if ( window.ActiveXObject )
	{
		oDoc = new ActiveXObject( "Microsoft.XMLDOM" );
		oDoc.loadXML( p_sXml );
	}
	else if ( document.implementation && document.implementation.createDocument )
	{
		oDoc = document.implementation.createDocument( "", "", null );
		var oParser = new DOMParser( );
		oDoc = oParser.parseFromString( p_sXml, "text/xml" );
	}
	else
	{
		alert( "Votre navigateur ne permet pas la création de document XML (xml.js / loadXml( ))" );		
	}
	return oDoc;
}


