title: How to add attribute to root XML in my case?
body: <p>XML is created by following code.</p>
  
  <pre><code>DataSet das = new DataSet();
  das = ds.Copy();
  das.DataSetName = "Stock";
  
  das.Tables[0].TableName = "Assortment";
  das.Tables[0].Columns[1].ColumnName = "Item";
  das.Tables[0].Columns[2].ColumnName = "Quantity";
  das.Tables[0].Columns[3].ColumnName = "Price";
  das.Tables[0].Columns[4].ColumnName = "ValidDate";
  das.Tables[0].Columns[5].ColumnName = "Summ";
  das.Tables[0].Columns[6].ColumnName = "Manufacturer";
  das.Tables[0].Columns[7].ColumnName = "Supplier";
  das.WriteXml(LocalPath);
  </code></pre>
  
  <p>I get following xml:</p>
  
  <pre><code>&lt;Stock&gt;
    &lt;Assortment&gt;
      &lt;ID&gt;1&lt;/ID&gt;
      &lt;Item&gt;L - тироксин   Б/Х таб  100мкг  №50&lt;/Item&gt;
      &lt;Quantity&gt;12&lt;/Quantity&gt;
      &lt;Price&gt;41496.0000&lt;/Price&gt;
      &lt;ValidDate&gt;01.01.1999&lt;/ValidDate&gt;
      &lt;Summ&gt;497952.0000&lt;/Summ&gt;
      &lt;Manufacturer&gt;Заглушка&lt;/Manufacturer&gt;
      &lt;Supplier&gt;Заглушка&lt;/Supplier&gt;
    &lt;/Assortment&gt;
    &lt;Assortment&gt;
      &lt;ID&gt;1242&lt;/ID&gt;
      &lt;Item&gt;L - тироксин   Б/Х таб  100мкг  №50&lt;/Item&gt;
      &lt;Quantity&gt;12&lt;/Quantity&gt;
      &lt;Price&gt;10.8000&lt;/Price&gt;
      &lt;ValidDate&gt;01.01.1999&lt;/ValidDate&gt;
      &lt;Summ&gt;129.6000&lt;/Summ&gt;
      &lt;Manufacturer&gt;Заглушка&lt;/Manufacturer&gt;
      &lt;Supplier&gt;Заглушка&lt;/Supplier&gt;
    &lt;/Assortment&gt;
  &lt;/Stock&gt;
  </code></pre>
  
  <p>How to add attribute to root XML? I want like this</p>
  
  <pre><code>&lt;Stock Date="11.11.2013"&gt;
    &lt;Assortment&gt;
      &lt;ID&gt;1&lt;/ID&gt;
      &lt;Item&gt;L - тироксин   Б/Х таб  100мкг  №50&lt;/Item&gt;
      &lt;Quantity&gt;12&lt;/Quantity&gt;
      &lt;Price&gt;41496.0000&lt;/Price&gt;
      &lt;ValidDate&gt;01.01.1999&lt;/ValidDate&gt;
      &lt;Summ&gt;497952.0000&lt;/Summ&gt;
      &lt;Manufacturer&gt;Заглушка&lt;/Manufacturer&gt;
      &lt;Supplier&gt;Заглушка&lt;/Supplier&gt;
    &lt;/Assortment&gt;
    &lt;Assortment&gt;
      &lt;ID&gt;1242&lt;/ID&gt;
      &lt;Item&gt;L - тироксин   Б/Х таб  100мкг  №50&lt;/Item&gt;
      &lt;Quantity&gt;12&lt;/Quantity&gt;
      &lt;Price&gt;10.8000&lt;/Price&gt;
      &lt;ValidDate&gt;01.01.1999&lt;/ValidDate&gt;
      &lt;Summ&gt;129.6000&lt;/Summ&gt;
      &lt;Manufacturer&gt;Заглушка&lt;/Manufacturer&gt;
      &lt;Supplier&gt;Заглушка&lt;/Supplier&gt;
    &lt;/Assortment&gt;
  </code></pre>
  
  <p>Adding date attribute to Stock.
  Because I want to read Date when XML was created.
  Thanks.</p>