Exports this object into a LEMS XML object

def toxml(self):
        """
        Exports this object into a LEMS XML object
        """

        return ('<KineticScheme '
                'name="{0}" '
                'nodes="{1}" '
                'edges="{2}" '
                'stateVariable="{3}" '
                'edgeSource="{4}" '
                'edgeTarget="{5}" '
                'forwardRate="{6}" '
                'reverseRate="{7}"/>').format(self.name,
                                              self.nodes,
                                              self.edges,
                                              self.state_variable,
                                              self.edge_source,
                                              self.edge_target,
                                              self.forward_rate,
                                              self.reverse_rate)