/// <summary> /// Loads configuration from xml file. /// </summary> /// <param name="configFilePath">Configuration file path.</param> public Configuration Load(string configFilePath) { var xmlFile = new XmlParser(); xmlFile.Load(configFilePath); this.Get = xmlFile.GetNodeByXpath(RootXpath).ToDictionary(); ValidateConfig(); return this; }