code: def load(self, filename):
          
          #if LXE and self.mode != Mode.XPATH:
          #    #workaround for xml:id problem (disabled)
          #    #f = open(filename)
          #    #s = f.read().replace(' xml:id=', ' id=')
          #    #f.close()
          #    self.tree = ElementTree.parse(filename)
          #else:
          self.tree = xmltreefromfile(filename)
          self.parsexml(self.tree.getroot())
          if self.mode != Mode.XPATH:
              #XML Tree is now obsolete (only needed when partially loaded for xpath queries)
              self.tree = None
docs: Load a FoLiA XML file.
  
          Argument:
              filename (str): The file to load