private void CheckSubstitutionGroup(XmlSchemaSubstitutionGroup substitutionGroup) {
XmlSchemaElement examplar = (XmlSchemaElement)this.schema.Elements[substitutionGroup.Examplar];
if (examplar != null) {
foreach (XmlSchemaElement element in substitutionGroup.Members) {
if (element != examplar) {
if (!XmlSchemaType.IsDerivedFrom(element.ElementSchemaType, examplar.ElementSchemaType, examplar.FinalResolved)) {
SendValidationEvent(Res.Sch_InvalidSubstitutionMember, (element.QualifiedName).ToString(), (examplar.QualifiedName).ToString(), element);
}
}
}
}
}