pulling XML data from external site
 So im trying to figure out how to pull data from xml file that isnt hosted on my own site, im completely new to this so i have no idea where im going wrong, i can pull that data from my own site easy. any help would be appreciated thanks!



     <script type="text/javascript">
      if (window.XMLHttpRequest)
       {// code for IE7+, Firefox, Chrome, Opera, Safari
         xmlhttp=new XMLHttpRequest();
           }
           else
             {// code for IE6, IE5
               xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
                 }
                 url = "http://elcu.herobo.com/testarea/include/cd_catalog.xml"
                 xmlhttp.open("GET",url,false);
                 xmlhttp.send();
                 xmlDoc=xmlhttp.responseXML;

                 document.write("<table border='0' cellpadding='1' cellspacing='1' width'90%' id='1' class='tablesorter'><thead><tr> <th>Artist</th> <th>Title</th> <th>Country</th></thead><tbody>");
                 var x=xmlDoc.getElementsByTagName("CD");
                 for (i=0;i<x.length;i++)
                   {
                     document.write("<tr><td>");
                     document.write(x[i].getElementsByTagName("ARTIST")[0].childNodes[0].nodeValue);
                     document.write("</td><td>");
                     document.write(x[i].getElementsByTagName("TITLE")[0].childNodes[0].nodeValue);
                     document.write("</td><td>");
                     document.write(x[i].getElementsByTagName("COUNTRY")[0].childNodes[0].nodeValue);
                     document.write("</td></tr>");
                    }
                  document.write("</tbody></table>");
              </script>
pulling XML data from external site
===

 So im trying to figure out how to pull data from xml file that isnt hosted on my own site, im completely new to this so i have no idea where im going wrong, i can pull that data from my own site easy. any help would be appreciated thanks!



     <script type="text/javascript">
      if (window.XMLHttpRequest)
       {// code for IE7+, Firefox, Chrome, Opera, Safari
         xmlhttp=new XMLHttpRequest();
           }
           else
             {// code for IE6, IE5
               xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
                 }
                 url = "http://elcu.herobo.com/testarea/include/cd_catalog.xml"
                 xmlhttp.open("GET",url,false);
                 xmlhttp.send();
                 xmlDoc=xmlhttp.responseXML;

                 document.write("<table border='0' cellpadding='1' cellspacing='1' width'90%' id='1' class='tablesorter'><thead><tr> <th>Artist</th> <th>Title</th> <th>Country</th></thead><tbody>");
                 var x=xmlDoc.getElementsByTagName("CD");
                 for (i=0;i<x.length;i++)
                   {
                     document.write("<tr><td>");
                     document.write(x[i].getElementsByTagName("ARTIST")[0].childNodes[0].nodeValue);
                     document.write("</td><td>");
                     document.write(x[i].getElementsByTagName("TITLE")[0].childNodes[0].nodeValue);
                     document.write("</td><td>");
                     document.write(x[i].getElementsByTagName("COUNTRY")[0].childNodes[0].nodeValue);
                     document.write("</td></tr>");
                    }
                  document.write("</tbody></table>");
              </script>