I want to save my webpage in XML format. I thought of using XmlDocument to save the values. I tried searching it but I couldn't find a proper way for saving the data entered in a textbox to the xml document.Is there any way? Although incorrect, but this is what I've done till now.\[code\] XmlDocument XDoc = new XmlDocument(); // Create root node. XmlElement XElemRoot = XDoc.CreateElement("Generate_License"); //Add the node to the document. XDoc.AppendChild(XElemRoot); XmlElement Xsource = XDoc.CreateElement("General_Info", txtGInfo.ToString()); XElemRoot.AppendChild(Xsource);\[/code\]