/*PARSER XMLSITE DE CONSULTATION DES RESULTATS SPORTIFSSOHO INFORMATIQUE - METZ - FRANCE09-2008*/function parseXML(xml) {	var styleGlobal										= new Array;	var dataBloc										= new Array;	var i												= 0;	var j												= 0// generation de l'objet xml a partir de la string du WS	xml 	= replaceAll('&lt;', '<', xml);	xml 	= replaceAll('&gt;', '>', xml);	xml 	= replaceAll('&amp;lt;', '<', xml);	xml 	= replaceAll('&amp;gt;', '>', xml);	xml 	= replaceAll('<string xmlns="http://schemas.microsoft.com/2003/10/Serialization/">', '', xml);	xml 	= replaceAll('</string>', '', xml);		//Internet Explorer	try {		xmlDoc												= new ActiveXObject("Microsoft.XMLDOM");		xmlDoc.async										= "false";		xmlDoc.loadXML(xml);	}	//Firefox, Mozilla, Opera, etc.	catch(e) {		try {		    parser											= new DOMParser();		    xmlDoc											= parser.parseFromString(xml, "text/xml");	    }		catch(e) { alert(e.message) }	}// parsing	dataBloc['containerType']							= '';	$(xmlDoc).find('dataContainer').each( function() {		dataBloc['containerType']						= $(this).attr('type');	});		dataBloc['styleGlobal']								= new Array;	$(xmlDoc).find('dataContainer').find('styleContainer').find('styles').find('style').each( function() {		dataBloc['styleGlobal'][i]						= $(this);		dataBloc['styleGlobal'][i].value				= $(this).find('value').text();		i++;	});		i													= 0;	$(xmlDoc).find('dataBloc').each( function() {		dataBloc[i]										= $(this);		dataBloc[i].style								= new Array;		j												= 0		$(this).find('style').each( function() {			dataBloc[i].style[j]						= $(this);			dataBloc[i].style[j].value					= $(this).find('value').text();			j++;		});		dataBloc[i].data								= new Array;		j												= 0		$(this).find('data').each( function() {			dataBloc[i].data[j]							= $(this);			dataBloc[i].data[j].value					= $(this).find('value').text();			j++;		});		dataBloc[i].format								= $(this).find('format').find('value').text();		dataBloc[i].output								= $(this).find('output').find('value').text();		i++;	});	// si pas de donnees retournees, on renvoie dataBloc[0] = 'false'	if (!dataBloc[0]) {		dataBloc[0]										= false;	}	return(dataBloc);}