parse an XML file from the filesystem or the network. The
      parsing flags @options are a combination of xmlParserOption.

def readerForFile(filename, encoding, options):
    """parse an XML file from the filesystem or the network. The
      parsing flags @options are a combination of xmlParserOption. """
    ret = libxml2mod.xmlReaderForFile(filename, encoding, options)
    if ret is None:raise treeError('xmlReaderForFile() failed')
    return xmlTextReader(_obj=ret)