title: rss sibling count with jquery
body: <p>I'm trying to get certain items from an rss feed with this script:</p>
  
  <pre><code>  &lt;script&gt;
    $(function() {
      var url = '/rss';
      var $list = $('#recent-posts');
      $.ajax({
          url: url,
          type: 'GET',
          dataType: 'xml',
          success: function(data) {                
              var $items = $(data).find('item');
              $items.each( function() {
                  var $item = $(this);
                  var link = $item.children('link').text();
                  var title = $item.children('title').text();
                  if (link &amp;&amp; title) {
                      $list.append($('&lt;li&gt;&lt;a href="' + link + '"&gt;' + title + '&lt;/a&gt;&lt;/li&gt;'));
                  }
              });
            }
        });
    });
  &lt;/script&gt;
  </code></pre>
  
  <p>What i can't figure out, is how to get the nth items of which have many siblings with the same name.</p>
  
  <p>for example:</p>
  
  <pre><code>&lt;item&gt;
   &lt;category&gt;content&lt;/category&gt;
   &lt;category&gt;content2&lt;/category&gt;
   &lt;category&gt;content3&lt;/category&gt;
  &lt;/item&gt;
  </code></pre>
  
  <p><code>var tags = $item.children('category')[1];</code> displays <code>&lt;category&gt;content2&lt;/category&gt;</code>
  but how can i display only the content of that specific 'category'?</p>
  
  <p>Thanks!</p>