public static RuleParameter Create(Rule rule, XmlNode node) { RuleParameter para = new RuleParameter(); para.Identifier = node.Attributes["identifier"].Value; // exactly one para.Class = node.SelectSingleNode("//class").InnerText; // exactly one return(para); }
public static ParameterList Create(Rule rule, XmlNodeList nodeList) { ParameterList paraList = new ParameterList(); foreach (XmlNode node in nodeList) { paraList.List.Add(RuleParameter.Create(rule, node)); } return(paraList); }