Jump to content

Only reads part of the records


Recommended Posts

The following script only reads the first 29 records. Even when I hard code the number of records it only reads 29 records. I have checked the xml data file for problems with the next record but an not find problems.


<body><script>if (window.XMLHttpRequest) {// code for IE7+, Firefox, Chrome, Opera, Safari xmlhttp=new XMLHttpRequest(); }else {// code for IE6, IE5 xmlhttp=new ActiveXObject("Microsoft.XMLHTTP"); }xmlhttp.open("GET","education60.xml",false);xmlhttp.send();xmlDoc=xmlhttp.responseXML;document.write("<table id='t01'><tr><th></th><th>Date</th><th>Meeting Name</th>><th>Starting Time</th>><th>Location</th></tr>");var x=xmlDoc.getElementsByTagName("Meeting");for (i=0;i<x.length;i++) { document.write("<tr><td>"); document.write(i+1); document.write("</td><td>"); document.write(x.getElementsByTagName("StartDate")[0].childNodes[0].nodeValue); document.write("</td><td>"); document.write(x.getElementsByTagName("MeetingName")[0].childNodes[0].nodeValue); document.write("</td><td>"); document.write(x.getElementsByTagName("StartTime")[0].childNodes[0].nodeValue); document.write("</td><td>"); document.write(x.getElementsByTagName("Location")[0].childNodes[0].nodeValue); document.write("</td></tr>"); }document.write("</table>");</script>


Any ideas?



Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Create New...