The code is as follows:
<script language="javascript">
loadXML = function(file){
xmlDoc=null;
if (document.implementation && document.implementation.createDocument){
var xmlhttp = new window.XMLHttpRequest();
xmlhttp.open("GET",file,false);
xmlhttp.send(null);
var xmlDoc = xmlhttp.responseXML.documentElement;
}
else {xmlDoc=null;}
return xmlDoc;
}
var xmlDoc=loadXML('data.xml');
var cNodes = xmlDoc.getElementsByTagName("book");
</script>
In the webkit vision r31804, I do not find the function "getElementsByTagName"
.But in the latest vision ,it can run. Would you please help me!
___________________________________________________________
好玩贺卡等你发,邮箱贺卡全新上线!
http://card.mail.cn.yahoo.com/_______________________________________________
webkit-dev mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev