title: ruby converting nokogiri xml to hash
body: <p>I am trying to convert  XML  with Nokogiri to a  hash:</p>
  
  <pre><code>&lt;eveapi version="2"&gt;
    &lt;currentTime&gt;2016-05-01 11:38:14&lt;/currentTime&gt;
    &lt;result&gt;
      &lt;characterID&gt;93898118&lt;/characterID&gt;
      &lt;characterName&gt;Ghitzarai&lt;/characterName&gt;
      &lt;race&gt;Minmatar&lt;/race&gt;
      &lt;bloodlineID&gt;4&lt;/bloodlineID&gt;
      &lt;bloodline&gt;Brutor&lt;/bloodline&gt;
      &lt;ancestryID&gt;24&lt;/ancestryID&gt;
      &lt;ancestry&gt;Slave Child&lt;/ancestry&gt;
      &lt;corporationID&gt;98012663&lt;/corporationID&gt;
      &lt;corporation&gt;Dry Atomic Fusion&lt;/corporation&gt;
    &lt;/result&gt;
  &lt;/eveapi&gt;
  
  # asume xml is the above XML
  hash = {}
  xml.xpath('//result').each do |row|
    hash[get_node_name:] = row.content
  end
  </code></pre>
  
  <p>Now <code>row.name</code> won't work cause that only returns <code>result</code> once.</p>
  
  <p>How do I get the right names from the child nodes?</p>