Plik index.html
<html> <head> <script type="text/javascript"> function test(xmlObj) { xml = xmlObj.childNodes[0]; for(var i=0; i<xml.childNodes.length; i++) { if(xml.childNodes[i].nodeType!=1) continue; //w tym miejscu IE powstaje błąd ("Taki interfejs nie jest obsługiwany") document.body.appendChild(xml.childNodes[i]); } } function getContent(fileName) { advAJAX.get({ url: "http://localhost/test/fl.xml", onSuccess : function(obj) { test(obj.responseXML); } }); return false; } </script> </head> <body> <input type="button" value="click" onclick="getContent()"> </body> </html>
Plik fl.xml
<document> <div> cosik </div> <div> cosik2 </div> </document>