function parseXML()
{
try //Internet Explorer
{
xmlDoc=new ActiveXObject("Microsoft.XMLDOM");
}
catch(e)
{
try //Firefox, Mozilla, Opera, etc.
{
xmlDoc=document.implementation.createDocument("","",null);
}
catch(e)
{
alert(e.message);
return;
}
}
xmlDoc.async=false;
xmlDoc.load("cities.xml");
return xmlDoc;
}
本文出自 “努力中。。。” 博客,请务必保留此出处http://y645194203.blog.51cto.com/8599045/1748060
原文:http://y645194203.blog.51cto.com/8599045/1748060