private XmlSchemaType FindType(XmlQualifiedName name, TypeFlags flags)
{
if (name == null || name.IsEmpty)
{
return Scope.GetTypeDesc(typeof(string)).DataType;
}
object type = Schemas.Find(name, typeof(XmlSchemaComplexType));
if (type != null)
{
return (XmlSchemaComplexType)type;
}
return FindDataType(name, flags);
}