title: Add data rows to XML table in C#
body: <p>I'm trying to figure out how to store data using C#.</p>
  
  <p>I'm new to C# data storage, having used PHP and MySQL to do this kind of thing in the past. After doing some research, it seems that using XML serialization is the way to go but I'm not quite sure of all the details.</p>
  
  <p>So far, I've created my table with several columns:</p>
  
  <pre><code>private void SerializeDataSet()
  {
      XmlSerializer ser = new XmlSerializer(typeof(DataSet));
  
      // Creates a DataSet for user info
      DataSet vault = new DataSet("vault");
      DataTable table_users = new DataTable("users");
      DataColumn last_name = new DataColumn("last_name");
      DataColumn first_name = new DataColumn("first_name");
      DataColumn birthdate = new DataColumn("birthdate");
      DataColumn role = new DataColumn("role");
      table_users.Columns.Add(last_name);
      table_users.Columns.Add(first_name);
      table_users.Columns.Add(birthdate);
      table_users.Columns.Add(role);
  
      // adds table
      vault.Tables.Add(table_users);
  
      // serialized table
      string filename = System.Environment.GetFolderPath(System.Environment.SpecialFolder.Resources) + "Vault_Tec_storage";
      TextWriter writer = new StreamWriter(filename);
      ser.Serialize(writer, vault);
      writer.Close();
  }
  </code></pre>
  
  <p>Now what I can't figure out how to do, is actually add the data to that table. For example, if I wanted a method to process a user registration for John Doe, born 10/15/1975 with role "0," how would I go about doing that?</p>