title: Issue reading XML file into C# DataSet
body: <p>I was given an .xml file that I needed to read into my code as a DataSet (as background, the file was created by creating a <code>DataSet</code> in C# and calling <code>dataSet.WriteXml(file, XmlWriteMode.IgnoreSchema)</code>, but this was done by someone else). </p>
  
  <p>The .xml file was shaped like this:</p>
  
  <pre><code> &lt;?xml version="1.0" standalone="yes"?&gt;
   &lt;NewDataSet&gt;
    &lt;Foo&gt;
      &lt;Bar&gt;abcd&lt;/Bar&gt;
      &lt;Foo&gt;efg&lt;/Foo&gt;
    &lt;/Foo&gt;
    &lt;Foo&gt;
      &lt;Bar&gt;hijk&lt;/Bar&gt;
      &lt;Foo&gt;lmn&lt;/Foo&gt;
    &lt;/Foo&gt;
  &lt;/NewDataSet&gt;
  </code></pre>
  
  <p>Using C# and .NET 2.0, I read the file in using the code below:</p>
  
  <pre><code>        DataSet ds = new DataSet();
          ds.ReadXml(file);
  </code></pre>
  
  <p>Using a breakpoint, after this <code>line ds.Tables[0]</code> looked like this (using dashes in place of underscores that I couldn't get to format properly):</p>
  
  <pre><code>Bar     Foo-Id    Foo-Id-0
  abcd     0         null
  null     1         0
  hijk     2         null
  null     3         2
  </code></pre>
  
  <p>I have found a workaround (I know there are many) and have been able to successfully read in the .xml, but what I would like to understand why <code>ds.ReadXml(file)</code> performed in this manner, so I will be able to avoid the issue in the future.  Thanks.</p>