Exports this object into a LEMS XML object

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

        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) + '/>'