private bool IsElementFromAny(XmlSchemaElement derivedElement, XmlSchemaAny baseAny) { return baseAny.Allows(derivedElement.QualifiedName) && IsValidOccurrenceRangeRestriction(derivedElement, baseAny); }