Create element in xml document
<p>I developed a sample application to  create xml document, and i had created  xml document and saved the xml. the application is still runing but i delete that xml and now try to create new xml using the appln.i got an issue of "this document already has'documentelement' node".</p>

<pre><code>if (File.Exists(AppPath) == false)
{
    root = doc.CreateElement("LicenseDetails");

    rootnode = doc.CreateElement("License");
    Login = doc.CreateElement("Login_Name");
    Login.InnerText = "KSC";
    rootnode.AppendChild(Login);
    root.AppendChild(rootnode);
    doc.AppendChild(root);
    doc.Save(AppPath);
 }
</code></pre>

<p>I can easily append a node in existing xml waht i want to do is if my xml got deleted application has to create a new xml with same tags</p>
