title: jquery get data from xml into array?
body: <p>I'm learning about Jquery and I'm using JqGrid to manipulate my data.
  My grid fills perfectly with data from a php file 'admin_db', that "convert" its data into a xml file, like this:</p>
  
  <pre><code>//php file        
  while($row = mysql_fetch_array($result,MYSQL_ASSOC)) {
          $s .= "&lt;row id='". $row['id_alum']."'&gt;";            
          $s .= "&lt;cell&gt;". $row['id_alum']."&lt;/cell&gt;";
          $s .= "&lt;cell&gt;". $row['name']."&lt;/cell&gt;";
          $s .= "&lt;/row&gt;";
      }
  
          $s .= "&lt;/rows&gt;"; 
  
          echo $s;
  </code></pre>
  
  <p>I need to get 'id_alum' and 'name' into an array, but when I tried with this function to get data from 'name', nothing happens:</p>
  
  <pre><code>  type: "GET",  
    url: "admin_db.php",  
    dataType: "xml",      
    $(xml).find('name').each(function(){...} 
  </code></pre>
  
  <p>I hope that you can help me with my problem, I really need to get my data into an array.
  Thank you in advance =)
  (Sorry if my english is bad, I'm still learning)</p>