+ new = self.nodefrom(child)
+ if new is not None:
+ node.children.append(new)
+ elif isinstance(child, collections.Iterable):
+ for ch in child:
+ self.addchild(node, ch)
+ else:
+ raise Exception("No node conversion known for %s objects" % str(type(child)))