'Convert this file to a new .cix file
@param cixelement {Element} The root <codeintel> element in a CIX file
@param file_lang The language of this file (possibly not JavaScript in
a mutli-language file)
@param module_lang The language of this module (defaults to file_lang)'

def convertToElementTreeFile(self, cixelement, file_lang, module_lang=None):

    if (module_lang is None):
        module_lang = file_lang
    cixfile = createCixFile(cixelement, self.path, lang=file_lang, mtime=str(self.mtime))
    cixmodule = createCixModule(cixfile, self.name, lang=module_lang, src=self.path)
    self.convertToElementTreeModule(cixmodule)
