docs: def xml(self, indent = ""):
          """Render an XML representation of the metadata""" #(independent of web.py for support in CLAM API)
          if not indent:
              xml = '<?xml version="1.0" encoding="UTF-8"?>\n'
          else:
              xml = ""
          xml += indent + "<CLAMMetaData format=\"" + self.__class__.__name__ + "\""
          if self.mimetype:
              xml += " mimetype=\""+self.mimetype+"\""
          if self.schema:
              xml += " schema=\""+self.schema+"\""
          if self.inputtemplate:
              xml += " inputtemplate=\""+self.inputtemplate+"\""
          xml += ">\n"
  
          for key, value in self.data.items():
              xml += indent + "  <meta id=\""+clam.common.util.xmlescape(key)+"\">"+clam.common.util.xmlescape(str(value))+"</meta>\n"
  
          if self.provenance:
              xml += self.provenance.xml(indent + "  ")
  
          xml += indent +  "</CLAMMetaData>"
          return xml