code: def toxml(self):
          
  
          return '<Tunnel name="{0}"'.format(self.name) + \
                 ' endA="{0}"'.format(self.end_a) + \
                 ' endB="{0}"'.format(self.end_b) + \
                 ' componentA="{0}"'.format(self.component_a) + \
                 ' componentB="{0}"'.format(self.component_b) + '/>'
docs: Exports this object into a LEMS XML object