title: How to parse an XML file with metadata key names?
body: <p>I've recently started using Nokogiri as a solution to parsing data into a RAILS 3 application. The problem I'm having is that I don't fully understand how to do it as the XML I am parsing appears to be 'non-standard'. Take a look at the snippet below:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;dataset  xmlns="http://.com/schemas/xmldata/1/"  xmlns:xs="http://www.w3.org/2001/XMLSchema-instance"&gt;
  &lt;!--
  &lt;dataset
      xmlns="http://.com/schemas/xmldata/1/"
      xmlns:xs="http://www.w3.org/2001/XMLSchema-instance"
      xs:schemaLocation="http://.com/schemas/xmldata/1/ xmldata.xsd"
  &gt;
  --&gt;
      &lt;metadata&gt;
            &lt;item name="Problem ID" type="xs:string" length="32"/&gt;
            &lt;item name="Account Title" type="xs:string" length="162"/&gt;
            &lt;item name="Account Name" type="xs:string" length="162"/&gt;
            &lt;item name="Reassignment" type="xs:int" precision="1"/&gt;
            &lt;item name="Initial Severity" type="xs:int" precision="1"/&gt;
            &lt;item name="Resolution Desc" type="xs:string" length="510"/&gt;
            &lt;item name="Resolver Name" type="xs:string" length="82"/&gt;
            &lt;item name="Problem Code" type="xs:string" length="32"/&gt;
            &lt;item name="Status" type="xs:string" length="32"/&gt;
      &lt;/metadata&gt;
      &lt;data&gt;
          &lt;row&gt;
              &lt;value&gt;AP-06684768    &lt;/value&gt;
              &lt;value&gt;ESA&lt;/value&gt;
              &lt;value&gt;1&lt;/value&gt;
              &lt;value&gt;8&lt;/value&gt;
              &lt;value&gt;8&lt;/value&gt;
              &lt;value xs:nil="true" /&gt;
              &lt;value xs:nil="true" /&gt;
              &lt;value&gt;ADDITION TO EXISTING FIREWALL&lt;/value&gt;
              &lt;value&gt;&lt;/value&gt;
              &lt;value&gt;ESA BRIDGE                              &lt;/value&gt;
              &lt;value&gt;CLOSED         &lt;/value&gt;
              &lt;value&gt;CLOSED         &lt;/value&gt;
          &lt;/row&gt;
          &lt;row&gt;
              &lt;value&gt;AP-06720564    &lt;/value&gt;
              &lt;value&gt;ESA&lt;/value&gt;
              &lt;value&gt;2011-01-19T12:02:47&lt;/value&gt;
              &lt;value&gt;2011-01-19T12:02:49&lt;/value&gt;
              &lt;value&gt;0&lt;/value&gt;
              &lt;value&gt;776&lt;/value&gt;
              &lt;value&gt;SCP UESCADADEV -&amp;gt; UESCADAPW/BW&lt;/value&gt;
              &lt;value&gt;NETAU_NETMGTS  &lt;/value&gt;
              &lt;value&gt;N/A&lt;/value&gt;
              &lt;value&gt;ESA BRIDGE                              &lt;/value&gt;
              &lt;value&gt;CLOSED         &lt;/value&gt;
              &lt;value&gt;CLOSED         &lt;/value&gt;
          &lt;/row&gt;
      &lt;/data&gt;
  &lt;/dataset&gt;
  </code></pre>
  
  <p>Instead of having named nodes and attributes it seems to be a 'metadata' section and then rows, much like a table really. How would I parse all this data?</p>