code: def toxml(self):
          
  
          return '<Property name="{0}"'.format(self.name) +\
            (' dimension="{0}"'.format(self.dimension) if self.dimension else 'none') +\
            (' defaultValue = "{0}"'.format(self.default_value) if self.default_value else '') +\
            '/>'
docs: Exports this object into a LEMS XML object