I wants to create an xml like.
<?xml version="1.0" encoding="utf-8"?>
<Initials>ANP</Initials>
<MedicalPracticeName>Dr. Anny</MedicalPracticeName>
<Start>2016-11-17</Start>
<Logon>
<UserId>admin</UserId>
<Password>abcde</Password>
</Logon>
by using XMLDocument class.
I have tried this code, but didn't success
XmlDocument xmlDoc = new XmlDocument();
XmlNode firstNode = xmlDoc.CreateNode(XmlNodeType.Element,"Initials","http://www.google.com");
xmlDoc.AppendChild(firstNode );
firstNode.InnerText = "ANP";
XmlNode SecondNode = xmlDoc.CreateNode(XmlNodeType.Element, "MedicalPracticeName", "http://www.google.com");
xmlDoc.AppendChild(SecondNode);
SecondNode.InnerText = "Dr. Anny";
XmlNode ThirdNode = xmlDoc.CreateNode(XmlNodeType.Element, "Start", "http://www.google.com");
xmlDoc.AppendChild(ThirdNode );
ThirdNode.InnerText = "2016-11-17";