Code Block
using
System.Xml;
XmlDocument xd = new XmlDocument();
xd.AppendChild(xd.CreateNode(XmlNodeType.XmlDeclaration,"",""));
xd.AppendChild(xd.CreateElement("Milap").AppendChild(xd.CreateTextNode("How to convert string to xml document")));
xd.Save("Parikh.xml");