private bool IsAnyFromAny(XmlSchemaAny derivedAny, XmlSchemaAny baseAny) {
if (!IsValidOccurrenceRangeRestriction(derivedAny, baseAny)) {
restrictionErrorMsg = Res.GetString(Res.Sch_AnyFromAnyRule1);
return false;
}
if (!NamespaceList.IsSubset(derivedAny.NamespaceList, baseAny.NamespaceList)) {
restrictionErrorMsg = Res.GetString(Res.Sch_AnyFromAnyRule2);
return false;
}
if ((int)derivedAny.ProcessContentsCorrect < (int)baseAny.ProcessContentsCorrect) {
restrictionErrorMsg = Res.GetString(Res.Sch_AnyFromAnyRule3);
return false;
}
return true;
}