title: jQuery and XML: Is this the last element?
body: <p>I have grabbed some <code>XML</code> data using this piece of jQuery:</p>
  
  <pre><code>$.ajax({
      type: "POST",
      url: "siteList.xml",
      dataType: "xml",
      success: function(xml) {
          $(xml).find('wrapper').each(function(){
              $(this).find('site').each(function(){
                  //check whether this is the last element...
              });
          });
      }
  });
  </code></pre>
  
  <p>What I would like to do is:
  Check whether I am parsing the last <code>site</code> element from the <code>XML</code> I pulled in.</p>
  
  <p><strong>edit:</strong>
  I cannot (as far as I'm aware), do this:</p>
  
  <pre><code>$(this).find('site').each(function(){
      $(this).last(); //nope
      $(this).find('site').last(); //nope
  });
  </code></pre>