title: Querying XML in Javascript
body: <p>I'm at a loss as to how to go about querying an XML file using Javascript.  It's possible this isn't something XML is really suited for (i know a fully featured database might be a better option).  I've looked into tools like XQuery, but I don't know how or if this is something I can use.  Do browsers support XQuery?  Can I write XQuery statements in Javascript files in such a way that I can use the results in other javascript functions? Any help would be appreciated.<br>
  Here is some context:</p>
  
  <pre><code>$.ajax({
  
      url: "http://api.wunderground.com/api/test.json",
      dataType: "jsonp",
      success: function (parsed_json) {
          //do stuff with json file
      $.ajax({
          type: "GET",
          url: "weather_map.xml",
          dataType: "xml",
          success: function(xml) {
              var value = $(xml).find('condition[name="Clear"]').text();
              alert(value);
                      // do stuff with XML file
          }
      });
          //do more stuff with json file
   });
  </code></pre>