'Return a pretty-printed XML string for the Element.'

def prettify(self, elem):

    rough_string = ElementTree.tostring(elem, 'utf8')
    root = etree.fromstring(rough_string)
    return etree.tostring(root, pretty_print=True, encoding=ENCODE_METHOD).replace('        '.encode(), ' DCTB '.encode())
    'reparsed    =    minidom.parseString(rough_string)\n                                return    reparsed.toprettyxml(indent=" DCTB ",    encoding=ENCODE_METHOD)'
