def prettify(self, elem):
    '\n            Return a pretty-printed XML string for the Element.\n        '
    rough_string = ElementTree.tostring(elem, 'utf8')
    root = etree.fromstring(rough_string)
    return etree.tostring(root, pretty_print=True, encoding=ENCODE_METHOD).replace('  '.encode(), '\t'.encode())
    'reparsed = minidom.parseString(rough_string)\n        return reparsed.toprettyxml(indent="\t", encoding=ENCODE_METHOD)'
Return a pretty-printed XML string for the Element.
def prettify(self, elem):
    '\n            \n        '
    rough_string = ElementTree.tostring(elem, 'utf8')
    root = etree.fromstring(rough_string)
    return etree.tostring(root, pretty_print=True, encoding=ENCODE_METHOD).replace('  '.encode(), '\t'.encode())
    'reparsed = minidom.parseString(rough_string)\n        return reparsed.toprettyxml(indent="\t", encoding=ENCODE_METHOD)'