xmlclass/xmlclass.py
changeset 67 3a1b0afdaf84
parent 58 39cd981ff242
child 75 82d371634f15
equal deleted inserted replaced
66:fd138fc77510 67:3a1b0afdaf84
   237 """
   237 """
   238 def GetAttributeValue(attr):
   238 def GetAttributeValue(attr):
   239     if len(attr.childNodes) == 1:
   239     if len(attr.childNodes) == 1:
   240         return attr.childNodes[0].data.encode()
   240         return attr.childNodes[0].data.encode()
   241     else:
   241     else:
   242         return ""
   242         text = ""
       
   243         for node in attr.childNodes:
       
   244             if node.nodeName != "#text":
       
   245                 text += node.data.encode()
       
   246         return text
   243 
   247 
   244 """
   248 """
   245 Funtion that returns the Python type and default value for a given type
   249 Funtion that returns the Python type and default value for a given type
   246 """
   250 """
   247 def GetTypeInitialValue(attr_type):
   251 def GetTypeInitialValue(attr_type):