code: def to_str(self):
          
          return etree.tostring(self.root, xml_declaration=True,
                                standalone=True,
                                pretty_print=True)
docs: Returns a string of the SVG figure.