private bool isComplexTypeOnlyWithSimpleTpesAsChildrens(XmlSchemaComplexType type)
{
List<XmlSchemaElement> elements = XmlSchemaUtility.GetAllElements(type, false, Elements);
foreach (XmlSchemaElement element in elements)
{
if (!XmlSchemaUtility.IsSimpleType(element))
{
return false;
}
}
return true;
}