title: Add a new element with node childs in a XML file in c#
body: <p>I have a xml that is something like this:</p>
  
  <pre><code>&lt;Servers&gt;
    &lt;MyNewServer&gt;
      &lt;Host&gt;10.10.10.2&lt;/Host&gt;
      &lt;Port&gt;12&lt;/Port&gt;
      &lt;User&gt;MyUser&lt;/User&gt;
      &lt;Password&gt;NkbgKnF9g96EYgxG3qRdCNY2KR6Xd5+0uqpY9KOCl4k=&lt;/Password&gt;
    &lt;/MyNewServer&gt;
  &lt;/Servers&gt;
  </code></pre>
  
  <p>I'm trying to add a new server below of "NyNewServer" label and add the same child elements in blank (Host, Port, User and Password).</p>
  
  <p>I'm adding now a new element of server but is not with the correct format is displayed horizontal  instead of vertically, and I'm not sure how to add the child elements in blank. </p>
  
  <p>Any idea? I have this:</p>
  
  <pre><code>public void XmlNewInterface(string Server)
  {
      //Temporal Solution
      xmldoc.Load(XMLInterfacesFile);            
      XmlElement record = xmldoc.CreateElement(Server);
      record.InnerText = Guid.NewGuid().ToString();
      xmldoc.DocumentElement.AppendChild(record);
  
      xmldoc.Save(XMLInterfacesFile);
  }
  </code></pre>
  
  <p>Thanks</p>