def toxml(self, response, _type='text/xml'): output = Xml.toxml(self) response('200 OK', [('Content-type', _type), ('Content-length', '%s' % len(output))]) return [output]
def __init__(self, *elems, **attrs): Xml.__init__(self, self.tag, *elems, **attrs)