--- a/xmlclass/xmlclass.py Fri Sep 07 10:27:20 2007 +0200
+++ b/xmlclass/xmlclass.py Mon Sep 10 08:37:04 2007 +0200
@@ -887,8 +887,9 @@
pass
elif attr == "choice_content":
attr_type = self.getChoices().items()
- value = self.content["name"]
- children.extend(self.content["value"].getElementInfos(self.content["name"])["children"])
+ if self.content:
+ value = self.content["name"]
+ children.extend(self.content["value"].getElementInfos(self.content["name"])["children"])
elif attr == "multichoice_content":
for element_infos in self.content:
children.append(element_infos["value"].getElementInfos(element_infos["name"]))