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