Moin,
ich habe folgendes Problem. Ich würde gern mittels XMLHttpRequest eine lokale XML Datei auslesen. Wenn ich nachfolgende Funktion benutze, liefert "text.getElementsByTagName("Tags")[0].getAttribute("format");" im Internet Explorer 6 nichts zurück. Im Firefox hingegen wird es korrekt angezeigt.
Behandeln IE und Mozilla responseXML unterschiedlich? Ich bin ratlos...
function GET(URI, absPath, FileName) {
this.req = createXMLHttpRequest();
this.cb = (function() {
var req = this.req;
if (req.readyState == 4) {
//var text = req.responseText;
var text = req.responseXML;
var type = text.getElementsByTagName("Tags")[0].getAttribute("format");
createOutput(text, type, absPath, FileName);
}
}).bind(this);
this.req.onreadystatechange = this.cb;
this.req.open('GET', uri, true);
this.req.send(null);
}
Gruß Spider