code: def saveFormatFileEnc(self, filename, encoding, format):
          
          ret = libxml2mod.xmlSaveFormatFileEnc(filename, self._o, encoding, format)
          return ret
docs: Dump an XML document to a file or an URL.