I'm using Jquery 1.9.1. It works fine in Chrome, but Ie 8, i get error: "invalid xml". It seems IE 6-8 has problems with dataType: xml. Jquery.parseXML is not working on ie-6-8.
$(document).ready(function() {
$.ajax({
type: "GET",
url: "faculty.xml",
dataType: "text",
success: function(xml) { parseXmlx(xml); },
error: function(e) { alert(e) }
});
$("#output").append("<p>Loading full-time faculty...</p>");
});
function parseXmlx(xml) {
$("#output").empty();
// alert(xml);
var $xml = $(jQuery.parseXML(xml));
// find every Tutorial and print the author
}
<person>
<name>test</name>
</person>
error:
Webpage error details
User Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1)
Timestamp: Wed, 19 Jun 2013 17:42:26 UTC
Message: Invalid XML: <person>
<name>Test</name>
</person>
Line: 507
Char: 3
Code: 0
URI: jquery-1.9.1.js