code: def toxml(self):
          
  
          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)
docs: Exports this object into a LEMS XML object