title: jQuery XML Parsing/Traversing
body: <p>I have the following XML-</p>
  
  <pre><code>&lt;rows&gt;
     &lt;row id="5"&gt;
        &lt;cell&gt;Item1&lt;/cell&gt;
     &lt;attrs&gt;
      &lt;attr&gt;
        &lt;id&gt;1&lt;/id&gt;
        &lt;type&gt;CheckBox&lt;/type&gt;
        &lt;values&gt;
          &lt;value&gt;
            &lt;id&gt;10&lt;/id&gt;
          &lt;/value&gt;
          &lt;value&gt;
            &lt;id&gt;11&lt;/id&gt;
          &lt;/value&gt;
        &lt;/values&gt;
      &lt;/attr&gt;
       &lt;attr&gt;
         &lt;id&gt;2&lt;/id&gt;
         &lt;type&gt;CheckBox&lt;/type&gt;
         &lt;values&gt;
           &lt;value&gt;
             &lt;id&gt;20&lt;/id&gt;
           &lt;/value&gt;
           &lt;value&gt;
             &lt;id&gt;21&lt;/id&gt;
           &lt;/value&gt;
         &lt;/values&gt;
       &lt;/attr&gt;
    &lt;/attrs&gt;
     &lt;/row&gt;
  &lt;/rows&gt;
  </code></pre>
  
  <p>What I want to do is to loop each of the  of a certain row.</p>
  
  <p>I tried to do this in order to get all of the attr ids but I also got the values ids.</p>
  
  <pre><code>function fillForm(id){
      var theRow = $(theXmlDoc).find('row[id='+id+']').get()
  
      $(theRow).find("attr").each(function(i) 
      {
          alert($(this).find("id").text());
      });
  }
  </code></pre>
  
  <p>I also would like to note that main goal is loop each attr and afterwards to loop each value while I have the attr's id.</p>
  
  <p>P.S if you think of an easier/simpler way to do so with some other library I'm open for suggestions.</p>
  
  <p>Thanks in advance,</p>