title: converting from xml name-values into simple hash
body: <p>I don't know what name this goes by and that's been complicating my search.</p>
  
  <p>My data file <em>OX.session.xml</em> is in the (old?) form</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;CAppLogin xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://oxbranch.optionsxpress.com"&gt;
    &lt;SessionID&gt;FE5E27A056944FBFBEF047F2B99E0BF6&lt;/SessionID&gt;
    &lt;AccountNum&gt;8228-5500&lt;/AccountNum&gt;
    &lt;AccountID&gt;967454&lt;/AccountID&gt;
  &lt;/CAppLogin&gt;
  </code></pre>
  
  <p>What is that XML data format called exactly? </p>
  
  <p>Anyway, all I want is to end up with one hash in my Ruby code like so:</p>
  
  <pre><code>CAppLogin = { :SessionID =&gt; "FE5E27A056944FBFBEF047F2B99E0BF6", :AccountNum =&gt; "8228-5500", etc. }   # Doesn't have to be called CAppLogin as in the file, may be fixed
  </code></pre>
  
  <p>What might be shortest, most built-in Ruby way to automate that hash read, in a way I can update the SessionID value and store it easily back into the file for later program runs?</p>
  
  <p>I've played around with YAML, REXML but would rather not yet print my (bad) example trials.</p>