Create a parser context for a file content. Automatic
      support for ZLIB/Compress compressed document is provided
       by default if found at compile-time.

def htmlCreateFileParserCtxt(filename, encoding):
    """Create a parser context for a file content. Automatic
      support for ZLIB/Compress compressed document is provided
       by default if found at compile-time. """
    ret = libxml2mod.htmlCreateFileParserCtxt(filename, encoding)
    if ret is None:raise parserError('htmlCreateFileParserCtxt() failed')
    return parserCtxt(_obj=ret)