title: XML to DataTable
body: <p>I have tried various methods listed in responses here using stream, ReadXml, etc. and I'm getting the same results (no rows added). I'm fairly certain it is something that is wrong with my DataTable's structure.</p>
  
  <p>DataTable code (contents of function that builds the structure and returns it):</p>
  
  <pre><code>DataTable dt = new DataTable();
  
  dt.Columns.Add("Item");
  dt.Columns.Add("Access1");
  dt.Columns.Add("Access2");
  dt.Columns.Add("Access3");
  dt.Columns.Add("Access4");
  dt.Columns.Add("Access5");
  dt.TableName = "Permission";
  
  return dt;
  </code></pre>
  
  <p>I have tried it with setting typeof(string) in the Add parameters (to match the schema), but that didn't help it.</p>
  
  <p>DataTable schema:</p>
  
  <pre><code>&lt;?xml version="1.0" standalone="yes"?&gt;
  &lt;NewDataSet&gt;
    &lt;xs:schema id="NewDataSet" xmlns="" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata"&gt;
      &lt;xs:element name="NewDataSet" msdata:IsDataSet="true" msdata:MainDataTable="Permission" msdata:UseCurrentLocale="true"&gt;
        &lt;xs:complexType&gt;
          &lt;xs:choice minOccurs="0" maxOccurs="unbounded"&gt;
            &lt;xs:element name="Permission"&gt;
              &lt;xs:complexType&gt;
                &lt;xs:sequence&gt;
                  &lt;xs:element name="Item" type="xs:string" minOccurs="0" /&gt;
                  &lt;xs:element name="Access1" type="xs:string" minOccurs="0" /&gt;
                  &lt;xs:element name="Access2" type="xs:string" minOccurs="0" /&gt;
                  &lt;xs:element name="Access3" type="xs:string" minOccurs="0" /&gt;
                  &lt;xs:element name="Access4" type="xs:string" minOccurs="0" /&gt;
                  &lt;xs:element name="Access5" type="xs:string" minOccurs="0" /&gt;
                &lt;/xs:sequence&gt;
              &lt;/xs:complexType&gt;
            &lt;/xs:element&gt;
         &lt;/xs:choice&gt;
        &lt;/xs:complexType&gt;
      &lt;/xs:element&gt;
    &lt;/xs:schema&gt;
  &lt;/NewDataSet&gt;
  </code></pre>
  
  <p>XML going in:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-16"?&gt;
  &lt;Permissions&gt;
    &lt;Permission&gt;
      &lt;Item&gt;Process 1&lt;/Item&gt;
      &lt;Access1&gt;True&lt;/Access1&gt;
      &lt;Access2&gt;True&lt;/Access2&gt;
      &lt;Access3&gt;False&lt;/Access3&gt;
      &lt;Access4&gt;False&lt;/Access4&gt;
      &lt;Access5&gt;False&lt;/Access5&gt;
    &lt;/Permission&gt;
    &lt;Permission&gt;
      &lt;Item&gt;Process 2&lt;/Item&gt;
      &lt;Access1&gt;True&lt;/Access1&gt;
      &lt;Access2&gt;True&lt;/Access2&gt;
      &lt;Access3&gt;True&lt;/Access3&gt;
      &lt;Access4&gt;False&lt;/Access4&gt;
      &lt;Access5&gt;False&lt;/Access5&gt;
    &lt;/Permission&gt;
  &lt;/Permissions&gt;
  </code></pre>
  
  <p>I have a feeling it has to do with my table structure, but I'm unsure where it is incorrect.</p>
  
  <p>Thanks for any help you can give</p>