title: Jquery AJAX call for XML file working in FF but NOT in IE and Chrome?
body: <p>Recently I am working with a bug regarding XML file retrieve in "IE and Chrome". Well, I used Ajax GET call for the same and it works fine in FF but does not work in IE and Chrome. Lets see what exactly happens with my code:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="ISO-8859-1"?&gt;
  
  &lt;folder&gt;
      &lt;title&gt;Inbox&lt;/title&gt;
      &lt;subject&gt;LinkedIn Connection111 &lt;/subject&gt;
      &lt;from&gt;connections@linkedin.com111 &lt;/from&gt;
      &lt;to&gt; mail2satyansahu@gmail.com111 &lt;/to&gt;
  &lt;/folder&gt;
  
  &lt;folder&gt;
      &lt;title&gt;Outbox&lt;/title&gt;
      &lt;subject&gt;LinkedIn Connection111 &lt;/subject&gt;
      &lt;from&gt;connections@linkedin.com111 &lt;/from&gt;
      &lt;to&gt; mail2satyansahu@gmail.com111 &lt;/to&gt;
  &lt;/folder&gt;
  
  &lt;folder&gt;
      &lt;title&gt;Sent&lt;/title&gt;
      &lt;subject&gt;LinkedIn Connection111 &lt;/subject&gt;
      &lt;from&gt;connections@linkedin.com111 &lt;/from&gt;
      &lt;to&gt; mail2satyansahu@gmail.com111 &lt;/to&gt;
  &lt;/folder&gt;
  </code></pre>
  
  <p>XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX</p>
  
  <p>The above is the XML file. </p>
  
  <p>Now, when I am trying to alert the data it works in FF but not with IE and Chrome. </p>
  
  <p>Following is the code for the HTML File:</p>
  
  <pre><code>&lt;!DOCTYPE html&gt;   
  &lt;html lang="en"&gt;   
  &lt;head&gt;   
  
  &lt;meta charset="utf-8"&gt;   
  &lt;title&gt;Satya's Twitter Bootstrap Modals&lt;/title&gt;   
  &lt;meta name="description" content="Creating Modal Window with Twitter Bootstrap"&gt;    
  &lt;script src="jquery-2.0.0.min.js"&gt;&lt;/script&gt;  
  &lt;/head&gt;  
  &lt;body&gt;  
  &lt;script&gt; 
  var searchFolder = 0;
  //var fromVal;
  $(document).ready(function(){
          //var i;
          $.ajax({
              type: "GET",
              url: "newXml.xml",
              dataType: "xml",
              success: function(xml){
              //alert("DSSS");
              var searchFolder = $(xml).find("folder");
              //alert("SDR");
              $(searchFolder).each(function(){
              var titlee = $(this).find('title').text();
              //alert("SSS");
              alert(titlee);
              });
              },
              error: function() {
              alert("An error occurred while processing XML file.");
              }
              });
              });
  &lt;/script&gt;
  
  Hello
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX</p>
  
  <p>Now, the Program runs fine in FireFox and alerts the value of "title" everytime BUT the same does not work in IE and Chrome. </p>
  
  <p>Please suggest me the exact problem with the code. Waiting for your response.</p>
  
  <p>Thanks      </p>