public void LoadXml(XElement InputXml) { if (InputXml == null) { return; } foreach (XElement subx in InputXml.Elements()) { IStringMatchingRule newrule = MatchingRuleFactory.GetRuleObject(subx, this._owner); if (newrule != null) { this._rules.Add(newrule); } } XAttribute xa = InputXml.Attribute("Type"); if (xa != null) { if (xa.Value == "AND") { this._ruletype = AndOr.AND; } } this.Not = XmlHandler.GetBoolFromXAttribute(InputXml, "Not", this.Not); }
public void LoadXml(XElement InputXml) { if (InputXml == null) { return; } foreach (XElement subx in InputXml.Elements()) { IStringMatchingRule newrule = MatchingRuleFactory.GetRootRuleObject(subx, this._owner); if (newrule != null) { this.Rules.Add(newrule); } } }