title: Text boxes and Xml in C#
body: <p>I just started using VS2010 and C#.</p>
  
  <p>I'm trying to create an app which takes values from two textboxes and adds it to an existing xml file.</p>
  
  <p>eg.</p>
  
  <pre><code>Text Box 1       Text Box 2
  ----------       ----------
  A                B
  C                D
  E                F
  </code></pre>
  
  <p>I want the resultant xml file to be like this.</p>
  
  <pre><code>&lt;root&gt;
   &lt;element&gt;
   &lt;Entry1&gt;A&lt;/Entry1&gt;
   &lt;Entry2&gt;B&lt;/Entry2&gt;
   &lt;/element&gt;
  &lt;/root&gt;
  </code></pre>
  
  <p>and so on...</p>
  
  <p>Can this be done using C# ??</p>
  
  <p>I'm unable to add the entries alternatively i.e. Entry1 should contain Text Box 1 line #1 and Entry2 Text Box 2 line #1.</p>
  
  <p>Any help would be appreciated.</p>
  
  <p>Thanks</p>