docs: def xml(self, indent = ""):
          """Produce Template XML"""
          xml = indent + "<InputTemplate id=\""+self.id+"\" format=\"" + self.formatclass.__name__ + "\"" + " label=\"" + self.label + "\""
          if self.formatclass.mimetype:
              xml +=" mimetype=\""+self.formatclass.mimetype+"\""
          if self.formatclass.schema:
              xml +=" schema=\""+self.formatclass.schema+"\""
          if self.filename:
              xml +=" filename=\""+self.filename+"\""
          if self.extension:
              xml +=" extension=\""+self.extension+"\""
          if self.optional:
              xml +=" optional=\"yes\""
          else:
              xml +=" optional=\"no\""
          if self.unique:
              xml +=" unique=\"yes\""
          else:
              xml +=" unique=\"no\""
          if self.acceptarchive:
              xml +=" acceptarchive=\"yes\""
          else:
              xml +=" acceptarchive=\"no\""
          xml += ">\n"
          for parameter in self.parameters:
              xml += parameter.xml(indent+"    ") + "\n"
          if self.converters:
              for converter in self.converters:
                  xml += indent + "    <converter id=\""+converter.id+"\">"+clam.common.util.xmlescape(converter.label)+"</converter>\n"
          if self.inputsources:
              for inputsource in self.inputsources:
                  xml += inputsource.xml(indent+"    ")
          xml += indent + "</InputTemplate>"
          return xml