private bool HasAttributes(XmlSchemaObjectCollection attributes)
{
foreach (XmlSchemaObject so in attributes)
{
if (so is XmlSchemaAttribute)
{
return true;
}
if (so is XmlSchemaAttributeGroup)
{
return true;
}
if (so is XmlSchemaAttributeGroupRef)
{
return true;
}
}
return false;
}