title: How to load external XML to get data into Phonegap app
body: <p>I am building an app using Phonegap that grabs data from an external URL, then displays the info using javascript.  </p>
  
  <p>I have 
  
  <p>here is my code in my index file to grab the xml:</p>
  
  <pre class="lang-js prettyprint-override"><code>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","http://EXAMPLESITE.com/EXAMPLE.xml",false);
  xmlhttp.send();
  xmlDoc=xmlhttp.responseXML;  
  </code></pre>
  
  <p>I am currently testing this using xcode and cannot get it to display anything on the emulator or on a test device.  </p>
  
  <p>I have also tried adding an ExternalHosts key in the plist and listed the domain I am trying to access.</p>
  
  <p>Can someone please me troubleshoot this?  Thank you</p>