private bool AncestorTypeHasWildcard(XmlSchemaObject ancestorType) { XmlSchemaComplexType ancestorSchemaType = GetComplexType(ancestorType); if (ancestorType != null) { return ancestorSchemaType.HasWildCard; } return false; }