Alexander O <alexan...@vonoesterreich.com> added the comment:

stupid question but why shouldn't this be possible ? 

class Element(_Element):
        def __init__(self,name,**kwargs):
                _Element.__init__(self,name)
                attributes = kwargs.get("attributes")
                children = kwargs.get("children")
                for key,value in attributes.iteritems():
                        self.setAttribute(key,value)
                for child in children:
                        self.appendChild(child)

----------
nosy: +avono

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue4849>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to