public XmlDocument Load(string path) { string contents = LoadXml(path); if (contents != null) { XmlDocument xmlDoc = new XmlDocument(); xmlDoc.LoadXml(contents); return xmlDoc; } return null; }