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

def createEntityParserCtxt(URL, ID, base):
    """Create a parser context for an external entity Automatic
      support for ZLIB/Compress compressed document is provided
       by default if found at compile-time. """
    ret = libxml2mod.xmlCreateEntityParserCtxt(URL, ID, base)
    if ret is None:raise parserError('xmlCreateEntityParserCtxt() failed')
    return parserCtxt(_obj=ret)