public static string ReadConfigFromFile(string path)
{
XmlDocument content = new XmlDocument();
try
{
content.Load(path);
}
catch (Exception ex)
{
Exception exception = new Exception("Cannot load XML from file.", ex);
throw exception;
}
return content.InnerXml;
}