def element(self, uri, content, attributes={}):
    'Utility method for adding a complete simple element'
    self.push(uri)
    for (k, v) in attributes.iteritems():
        self.attribute(k, v)
    self.text(content)
    self.pop()
Utility method for adding a complete simple element
def element(self, uri, content, attributes={}):
    
    self.push(uri)
    for (k, v) in attributes.iteritems():
        self.attribute(k, v)
    self.text(content)
    self.pop()