我们从Python开源项目中,提取了以下32个代码示例,用于说明如何使用handler.EntityResolver()。
def __init__(self): self._cont_handler = handler.ContentHandler() self._dtd_handler = handler.DTDHandler() self._ent_handler = handler.EntityResolver() self._err_handler = handler.ErrorHandler()
def getEntityResolver(self): "Returns the current EntityResolver." return self._ent_handler