//the inline xml contents must be enclosed like this :

//<div id="xml">            ## html id to get the contents with javascript

//<script type="text/xml">  ## script for safari to get the data within CDATA, 
//							## but then script gives an error in ie as the contents is not javascript
//							## so specify the type

//<!--[CDATA[   			## best way to enclose the xml to get a proper cross browser xml
//							## firefox adds -- when the CDATA is written like this <![CDATA[ 
//							## so let's write it like that from the beginning

//xml goes here

//]]-->						##close everything
//</script>
//</div>

function deleteCDATA(str) {
  //return str.replace(/(?:<!|\]\])?--(?:\[CDATA\[)?>/g,'');
	str=str.replace(/<!--\[CDATA\[/g,'');
	return str.replace(/\]\]-->/g,'');
}
function getInlineXML() {
   	var x=document.getElementById("xml").innerHTML;
   	x=x.replace(/<\/*(?:script|SCRIPT)\s*(?:type="text\/xml"|type=text\/xml)*>/g,'');
 	return deleteCDATA(x);
}
