internal static bool HasAttributeQNameRef(XmlSchemaObjectCollection attributes) {
foreach (XmlSchemaObject xso in attributes) {
if (xso is XmlSchemaAttributeGroupRef) {
return true;
}
else {
XmlSchemaAttribute attribute = xso as XmlSchemaAttribute;
if (!attribute.RefName.IsEmpty || !attribute.SchemaTypeName.IsEmpty) {
return true;
}
}
}
return false;
}
}