<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def get_xml(self, pretty=True):
 """ Get the XML as an UTF-8 string :returns: bytes encoded as UTF-8 """

        return etree.tostring(self.root, encoding="utf-8", pretty_print=pretty)