Jump to content
kneppdr

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?

Thx.

education60.xml

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Create New...