internal static bool IsMixed(XmlSchemaType type)
{
if (!(type is XmlSchemaComplexType))
return false;
XmlSchemaComplexType ct = (XmlSchemaComplexType)type;
bool mixed = ct.IsMixed;
// check the mixed attribute on the complexContent
if (!mixed)
{
if (ct.ContentModel != null && ct.ContentModel is XmlSchemaComplexContent)
{
mixed = ((XmlSchemaComplexContent)ct.ContentModel).IsMixed;
}
}
return mixed;
}