[webkit-dev] how to read XML document in webkit vision r31804?

h3282129 at yahoo.com.cn h3282129 at yahoo.com.cn
Mon Jun 29 07:30:45 PDT 2009


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/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-dev/attachments/20090629/5d9802e2/attachment.html>


More information about the webkit-dev mailing list