In hopes that Brian's difficulties may save you some trouble, here are the details.
if (document.implementation && document.implementation.createDocument)
parser = new DOMParser();
xmlDoc = parser.parseFromString("
John Johnson", "text/xml");
else if (window.ActiveXObject)
xmlDoc = new ActiveXObject("Microsoft.XMLDOM");
alert("Your browser can\'t handle this script");