diff -r 8c98bad90b8d -r fcc406143e5b xmlclass/xsdschema.py --- a/xmlclass/xsdschema.py Thu Aug 17 10:12:04 2017 +0300 +++ b/xmlclass/xsdschema.py Thu Aug 17 11:39:10 2017 +0300 @@ -421,7 +421,8 @@ return result return True - SimpleTypeInitialValue = lambda: [] + def SimpleTypeInitialValue(): + return [] GenerateSimpleType = GenerateSimpleTypeXMLText(lambda x: " ".join(map(itemtypeinfos["generate"], x)))