title: Parse XML with Nokogiri
body: <p>Having some issues getting the proper setup for Nokogiri and their documentation is a little rough to get started with.</p>
  
  <p>I am trying to parse the XML file: <a href="http://www.kongregate.com/games_for_your_site.xml" rel="nofollow">http://www.kongregate.com/games_for_your_site.xml</a></p>
  
  <p>Which returns multiple games inside the gameset, and for each game it has a title, desc, etc....</p>
  
  <pre><code>&lt;gameset&gt;
    &lt;game&gt;
      &lt;id&gt;160342&lt;/id&gt;
      &lt;title&gt;Tricky Rick&lt;/title&gt;
      &lt;thumbnail&gt;
        http://cdn3.kongregate.com/game_icons/0042/7180/KONG_icon250x200_site.png?21656-op
      &lt;/thumbnail&gt;
      &lt;launch_date&gt;2012-12-12&lt;/launch_date&gt;
      &lt;category&gt;Puzzle&lt;/category&gt;
      &lt;flash_file&gt;
        http://external.kongregate-games.com/gamez/0016/0342/live/embeddable_160342.swf
      &lt;/flash_file&gt;
      &lt;width&gt;640&lt;/width&gt;
      &lt;height&gt;480&lt;/height&gt;
      &lt;url&gt;
        http://www.kongregate.com/games/tAMAS_Games/tricky-rick
      &lt;/url&gt;
      &lt;description&gt;
        Help Rick to collect all the stolen fuel to refuel his spaceship and fly away from the planet. Use hammer, bombs, jetpack and other useful stuff to solve puzzles!
      &lt;/description&gt;
      &lt;instructions&gt;
        WASD \ Arrow Keys &amp;#8211; move; S \ Down Arrow &amp;#8211; take\release an object; CNTRL &amp;#8211; interaction with objects: throw, hammer strike, invisibility mode; SPACE &amp;#8211; interaction with elevators and fuel stations; Esc \ P &amp;#8211; pause;
      &lt;/instructions&gt;
      &lt;developer_name&gt;tAMAS_Games&lt;/developer_name&gt;
      &lt;gameplays&gt;24999&lt;/gameplays&gt;
      &lt;rating&gt;3.43&lt;/rating&gt;
    &lt;/game&gt;
    &lt;game&gt;
      &lt;id&gt;160758&lt;/id&gt;
      &lt;title&gt;Flying Cookie Quest&lt;/title&gt;
      &lt;thumbnail&gt;
        http://cdn2.kongregate.com/game_icons/0042/8428/icon_cookiequest_kong_250x200_site.png?16578-op
      &lt;/thumbnail&gt;
      &lt;launch_date&gt;2012-12-07&lt;/launch_date&gt;
      &lt;category&gt;Action&lt;/category&gt;
      &lt;flash_file&gt;
        http://external.kongregate-games.com/gamez/0016/0758/live/embeddable_160758.swf
      &lt;/flash_file&gt;
      &lt;width&gt;640&lt;/width&gt;
      &lt;height&gt;480&lt;/height&gt;
      &lt;url&gt;
        http://www.kongregate.com/games/LongAnimals/flying-cookie-quest
      &lt;/url&gt;
      &lt;description&gt;
        Launch Rocket Panda into the land of Cookies. With the help of low-flying sharks, hang-gliding sheep and Rocket Badger, can you defeat the all powerful Biscuit Head? Defeat All enemies of cookies in this launcher game.
      &lt;/description&gt;
      &lt;instructions&gt;Use the mouse button!&lt;/instructions&gt;
      &lt;developer_name&gt;LongAnimals&lt;/developer_name&gt;
      &lt;gameplays&gt;168672&lt;/gameplays&gt;
      &lt;rating&gt;3.67&lt;/rating&gt;
    &lt;/game&gt;
  </code></pre>
  
  <p>From the documentation, I am using something like:</p>
  
  <pre><code>require 'nokogiri'
  require 'open-uri'
  
  url = "http://www.kongregate.com/games_for_your_site.xml"
  xml = Nokogiri::XML(open(url))
  xml.xpath("//game").each do |node|
      puts node.xpath("//id")
      puts node.xpath("//title")
      puts node.xpath("//thumbnail")
      puts node.xpath("//category")
      puts node.xpath("//flash_file")
      puts node.xpath("//width")
      puts node.xpath("//height")
      puts node.xpath("//description")
      puts node.xpath("//instructions")
  end
  </code></pre>
  
  <p>But, it just returns endless data, and not in a set. Any help would be helpful.</p>