private XmlSchemaAttribute FindAttribute(XmlQualifiedName name)
{
XmlSchemaAttribute attribute = (XmlSchemaAttribute)Schemas.Find(name, typeof(XmlSchemaAttribute));
if (attribute == null)
throw new InvalidOperationException(SR.Format(SR.XmlMissingAttribute, name.Name));
return attribute;
}