private IErrorSet ValidateOneSet(AttributeSet attrSet) { IErrorSet errSet = null; XmlDocument xml = new XmlDocument(); xml.LoadXml(this.XmlProvider.GetCSXmlText(attrSet)); foreach (Attribute attr in attrSet.Attribute) { string select = getRuleSelectString(attrSet.attributeSetID, attr.attributeID); XmlNodeList rules = xml.SelectNodes(select); int rCnt = rules.Count; for (int r = 0; r < rCnt; r++) { IError err = ValidateAttr(attr, rules.Item(r)); if (err != null) { if (errSet == null) { errSet = new ErrorSet(attrSet.attributeSetID); } errSet.Add(err); } } } return(errSet); }
private IErrorSet ValidateOneSet(AttributeSet attrSet) { IErrorSet errSet = null; XmlDocument xml = new XmlDocument(); xml.LoadXml(this.XmlProvider.GetCSXmlText(attrSet)); foreach(Attribute attr in attrSet.Attribute ) { string select = getRuleSelectString(attrSet.attributeSetID, attr.attributeID); XmlNodeList rules = xml.SelectNodes(select); int rCnt = rules.Count; for (int r = 0; r < rCnt; r++) { IError err = ValidateAttr(attr, rules.Item(r)); if (err != null) { if (errSet == null) errSet = new ErrorSet(attrSet.attributeSetID); errSet.Add(err); } } } return errSet; }