private XmlSchemaElement FindElement(XmlQualifiedName name)
{
XmlSchemaElement element = (XmlSchemaElement)Schemas.Find(name, typeof(XmlSchemaElement));
if (element == null)
throw new InvalidOperationException(SR.Format(SR.XmlMissingElement, name.ToString()));
return element;
}