public ControllerRuleGroup Load(string expertKey){ var path = "controller.rules/" + expertKey + ".rules.xml"; var expert = new ControllerRuleGroup(); var xml = PathResolver.ReadXml(path, null, new ReadXmlOptions{ApplyXslt = true, Merge = true}); expert.LoadFromXml(XElement.Parse(xml)); return expert; }
public static ControllerRuleGroup FromXml(XElement xml){ var result = new ControllerRuleGroup(); result.LoadFromXml(xml); return result; }