def prettyprint_xml(element):
return etree.tostring(element, pretty_print=True).decode('<STR_LIT:utf-8>')<EOL>
A rough and dirty way to prettyprint an Element with indention.

:param lxml.etree._Element element: The Element or ElementTree to format.
:rtype: str
:returns: A prettyprinted representation of the element.