internal XmlSchemaAttribute FindAttribute(ICollection attributes, string attrName)
{
foreach(XmlSchemaObject xsa in attributes)
{
XmlSchemaAttribute schemaAttribute = xsa as XmlSchemaAttribute;
if (schemaAttribute != null)
{
if (schemaAttribute.Name == attrName)
{
return schemaAttribute;
}
}
}
return null;
}