changeset 67 | 3a1b0afdaf84 |
parent 58 | 39cd981ff242 |
child 75 | 82d371634f15 |
--- a/xmlclass/xmlclass.py Thu Aug 09 18:06:54 2007 +0200 +++ b/xmlclass/xmlclass.py Thu Aug 09 18:07:44 2007 +0200 @@ -239,7 +239,11 @@ if len(attr.childNodes) == 1: return attr.childNodes[0].data.encode() else: - return "" + text = "" + for node in attr.childNodes: + if node.nodeName != "#text": + text += node.data.encode() + return text """ Funtion that returns the Python type and default value for a given type