title: jQuery XML Traversing
body: <p>I have the following XML format and would like to get the list of markers for each category using jQuery.</p>
  
  <pre><code>&lt;categories&gt;
      &lt;category id="1"&gt;
          &lt;marker /&gt;
          &lt;marker /&gt;
          &lt;marker /&gt;
      &lt;/category&gt;
      &lt;category id="2"&gt;
          &lt;marker /&gt;
          &lt;marker /&gt;
          &lt;marker /&gt;
      &lt;/category&gt;
      &lt;category id="3"&gt;
          &lt;marker /&gt;
          &lt;marker /&gt;
          &lt;marker /&gt;
      &lt;/category&gt;
  &lt;/categories&gt;
  </code></pre>
  
  <p>I am loading the XML correctly using jQuery with an AJAX call and when I use jQuery.find().each I am getting anywhere. Am I doing it wrong?</p>
  
  <pre><code>$(data).find('category[id=1] &gt; marker').each(function() {}
  $(data).find('categories category[id=1] &gt; marker').each(function() {}
  </code></pre>