:rtype: str

def xml(self):
        """
        :rtype: str
        """
        if six.PY3:
            data = ElementTree.tostring(self.et, encoding="unicode")
        else:
            data = ElementTree.tostring(self.et)
        return data