<script language="JavaScript">
<!--
var xmlDoc;
xmlDoc= new ActiveXObject("MSXml.DOMDocument");
var strXML="<root><a>item1</a><a>item2</a></root>";
xmlDoc.loadXML(strXML);
alert(xmlDoc.xml);
//-->
</script>
<!--
var xmlDoc;
xmlDoc= new ActiveXObject("MSXml.DOMDocument");
var strXML="<root><a>item1</a><a>item2</a></root>";
xmlDoc.loadXML(strXML);
alert(xmlDoc.xml);
//-->
</script>
<!--
var xmlDoc;
xmlDoc=new ActiveXObject("Microsoft.XMLDOM")
var strXML="<root><a>item1</a><b>item2</b></root>";
xmlDoc.loadXML(strXML);
//-->
</script>