title: Append data to existing XML file
body: <p>This is my code for Appending New Records to my existing XML Document:</p>
  
  <pre class="lang-vb prettyprint-override"><code>Sub addEXISTING(ByVal c_name As String, ByVal c_age As Integer, ByVal c_sex As String)
       Dim e_client = doc.CreateElement("CLIENT")
  
       Dim e_name As Xml.XmlElement = doc.CreateElement("NAME")
  
       Dim e_age As Xml.XmlElement = doc.CreateElement("AGE")
  
       Dim e_sex As Xml.XmlElement = doc.CreateElement("SEX")
  
       e_name.InnerText = c_name
       e_age.InnerText = c_age
       e_sex.InnerText = c_sex
       e_client.AppendChild(e_name)
       e_client.AppendChild(e_age)
       e_client.AppendChild(e_sex)
       childparent.AppendChild(e_client)
  
       doc.AppendChild(childparent)
       doc.Save("D:\mefolder\me.xml")
       MsgBox("XML DOCUMENT UPDATED!", MsgBoxStyle.Information, "Notice:")
  End Sub
  </code></pre>
  
  <p>But when ever this piece of code is executed, the file entries of the new data overwrite the existing ones.</p>
  
  <p>Basically, the output I would like is this, for example (when viewing the XML document in a browser):</p>
  
  <pre><code>&lt;BIO_INFO&gt;
  &lt;CLIENT&gt;   ----- EXISTING 
  &lt;NAME&gt;John&lt;/NAME&gt; 
  &lt;AGE&gt;21&lt;/AGE&gt;
  &lt;SEX&gt;MALE&lt;/SEX&gt;
  &lt;/CLIENT&gt;
  &lt;CLIENT&gt;  ----- NEW ENTRY
  &lt;NAME&gt;Elena&lt;/NAME&gt;
  &lt;AGE&gt;21&lt;/AGE&gt;
  &lt;SEX&gt;FEMALE&lt;/SEX&gt;
  &lt;/CLIENT&gt;
  &lt;/BIO_INFO&gt;
  </code></pre>
  
  <p>But this is what I get:</p>
  
  <pre><code>&lt;BIO_INFO&gt;
  &lt;CLIENT&gt;
  &lt;NAME&gt;Elena&lt;/NAME&gt;
  &lt;AGE&gt;21&lt;/AGE&gt;
  &lt;SEX&gt;FEMALE&lt;/SEX&gt;
  &lt;/CLIENT&gt;
  &lt;/BIO_INFO&gt;"
  </code></pre>
  
  <p>Here are my declarations:</p>
  
  <pre class="lang-vb prettyprint-override"><code>Dim filer As DirectoryInfo = New DirectoryInfo("D:\mefolder")
  Dim doc As New XmlDocument
  Dim root As XmlElement = doc.CreateElement("CLIENT")
  Dim childparent As XmlElement = doc.CreateElement("BIO_INFO")
  Dim child As XmlElement = doc.CreateElement("NAME")
  Dim childage As XmlElement = doc.CreateElement("AGE")
  Dim childsex As XmlElement = doc.CreateElement("SEX")
  </code></pre>