public FieldDescription(XmlElement XmlNode) { XmlHelper xml = new XmlHelper(XmlNode); Name = xml.GetString("@Name"); EmptyAlsoValidate = xml.GetBoolean("@EmptyAlsoValidate", true); Required = xml.GetBoolean("@Required", false); mValidateStatements = new ValidateStatements(XmlNode); }
public MixDateValidator(XmlElement xmlNode) { XmlHelper xml = new XmlHelper(xmlNode); _DateFormat = xml.GetString("Matchs/@CorrectTo"); _ValidPattern = new DateMatcher(xmlNode.SelectSingleNode("ValidPattern") as XmlElement); _Matchs = new List<DateMatcher>(); foreach (XmlElement e in xmlNode.SelectNodes("Matchs/Match")) _Matchs.Add(new DateMatcher(e)); }