code: def element_repr(self):
      
      # deepcopy so we don't mess with the valid XML.
      pretty_data = copy.deepcopy(self)
      indent_xml(pretty_data)
      return ElementTree.tostring(pretty_data).encode("utf-8")
docs: Return a string with indented XML data.
  
      Used to replace the __repr__ method of Element.