title: How to get xml data using ajax in jquery?
body: <p>I want to use ajax in jquery to get data for my page...</p>
  
  <p>The problem is that the url which i call has some query strings to be sent along with it...</p>
  
  <p>for example: the url which i call for getting data is:-</p>
  
  <p><strong>http://mysite.in.dataengine.aspx?t=abcde&amp;token=h34jk3&amp;f=xml</strong></p>
  
  <p>the data i get in response from this url can be in xml format or java script arrays(whichever i choose)</p>
  
  <p>for eg...the xml wil look like this:-</p>
  
  <pre><code>&lt;root version="1.0"&gt;  
      &lt;Regions&gt;
      &lt;Region SubCode="MWEST" RCode="west"/&gt;  
      &lt;Region SubCode="MCENT" RCode="north"/&gt;  
      &lt;Region SubCode="THAN" RCode="south"/&gt;  
      &lt;/Regions&gt;  
  &lt;/root&gt;
  </code></pre>
  
  <p>and the javascript array would look like this :-</p>
  
  <pre><code>Region = new Array();
  Region.push(new Array('MWEST', 'west'));
  Region.push(new Array('MCENT', 'north' ));
  Region.push(new Array('THAN', 'south'));
  </code></pre>
  
  <p>So when i get the data i want to store it in a drop down box.(using ajax)</p>
  
  <p><strong>Note</strong> I can get either xml OR javascript arrays as the returned data, not both together.</p>