code: def get_xml(self):
          
          with io.StringIO() as string:
              string.write(ET.tostring(self.root, encoding="unicode"))
              return string.getvalue()
docs: Returns a string of the MJCF XML file.