# HG changeset patch # User Surkov Sergey # Date 1495119656 -10800 # Node ID 57b4ac796dcbb3b4b57ffc69a220d9a155db4cc5 # Parent 496029f768d92b1bb0f507d1835a2a69f55ec822 fix reducing groups with ordered elements diff -r 496029f768d9 -r 57b4ac796dcb xmlclass/xsdschema.py --- a/xmlclass/xsdschema.py Wed May 03 11:03:44 2017 +0300 +++ b/xmlclass/xsdschema.py Thu May 18 18:00:56 2017 +0300 @@ -860,7 +860,7 @@ if element["type"] == CHOICE: group["choices"] = element["choices"] else: - group.update({"elements": element["elements"], "order": group["order"]}) + group.update({"elements": element["elements"], "order": element["order"]}) group.update(attributes) return group