In IE 6 and IE 7 do not provide any exceptions and/or results when running the following. Any ideas or advice is appreciated.
<html> <head> <title>Parse XML with JQuery</title> <script language="javascript" src="jquery-1.2.1.js"></script> <script language="javascript"> $(function() { $.ajax({ type: "POST", url: "books.xml", dataType: "xml", success: function(xmlData) { xmlDataSet = xmlData; buildHTMLFromXML(); } }); }); function buildHTMLFromXML() { resultSetLength = $("book",xmlDataSet).length; strToAppend = "<strong>There are a total of " + resultSetLength + " books</strong>.<br />"; strToAppend += "------------------------<br />"; $("title",xmlDataSet).each(function(i) { strToAppend += "<strong>" + $(this).text() + "</strong><br / >"; strToAppend += "by " + $("author:eq(" + parseInt(i) + ")",xmlDataSet).text() + "<br />"; strToAppend += "Publisher: " + $("publisher:eq(" + parseInt(i) + ")",xmlDataSet).text() + "<br />"; strToAppend += "ISBN-10: " + $("isbn:eq(" + parseInt(i) + ")",xmlDataSet).text(); strToAppend += "<br />"; strToAppend += "<br/>***********"; strToAppend += "<br />"; }); $("#info").html(strToAppend); } </script> </head> <body> <div id="info" style="float:left"></div> </body> </html>