title: How can extract multiple elements from a XML tree with a single #each iteration
body: <p>My xml looks something like this:</p>
  
  <pre><code>&lt;entry&gt;
    &lt;updated&gt;2012-11-14T13:58:49-07:00&lt;/updated&gt;
    &lt;id im:id="557137623" im:bundleId="com.rovio.angrybirdsstarwars"&gt;Some text&lt;/id&gt;
    &lt;title&gt;Angry Birds Star Wars - Rovio Entertainment Ltd&lt;/title&gt;
  &lt;/entry&gt;
  &lt;entry&gt;
    &lt;updated&gt;2012-11-14T13:58:49-07:00&lt;/updated&gt;
    &lt;id im:id="557137623" im:bundleId="com.rovio.angrybirdsstarwars"&gt;Some text&lt;/id&gt;
    &lt;title&gt;Angry Birds Star Wars - Rovio Entertainment Ltd&lt;/title&gt;
  &lt;/entry&gt;
  </code></pre>
  
  <p>I would like use Nokogiri to grab some data from the xml. Namely I am interested in the <code>im:id</code>, <code>im:bundleId</code> and the <code>&lt;title&gt;</code> from the xml above.</p>
  
  <p>I have managed to get to the stage where this works:</p>
  
  <pre><code>xml.css("entry id").each do |entry|
     puts entry["im:id"]
     puts entry["im:bundleid"]
  end
  </code></pre>
  
  <p>The problems is that to get <code>title</code> content I would have to iterate through <code>xml.css("entry title")</code> separately. Is there anyway of iterating through the entries and then pulling out the <code>id</code> data and the <code>title</code> in the same loop?</p>