public void SetContent(string CompanyName, string Address, string Phone, string Email)
{
XmlDocument XDoc = new XmlDocument();
// Create root node.
XmlElement XElemRoot = XDoc.CreateElement("SiteConfig");
//Add the node to the document.
XDoc.AppendChild(XElemRoot);
XmlElement XTemp = XDoc.CreateElement("Company");
XTemp.InnerText = CompanyName;
XElemRoot.AppendChild(XTemp);
XTemp = XDoc.CreateElement("Address");
XTemp.InnerText = Address;
XElemRoot.AppendChild(XTemp);
XTemp = XDoc.CreateElement("Phone");
XTemp.InnerText = Phone;
XElemRoot.AppendChild(XTemp);
XTemp = XDoc.CreateElement("Email");
XTemp.InnerText = Email;
XElemRoot.AppendChild(XTemp);
XDoc.Save(filename);
}