code: def readFile(filename, encoding, options):
      
      ret = libxml2mod.xmlReadFile(filename, encoding, options)
      if ret is None:raise treeError('xmlReadFile() failed')
      return xmlDoc(_obj=ret)
docs: parse an XML file from the filesystem or the network.