Register an error handler that will be called back as
           f(arg,msg,severity,reserved).

           @reserved is currently always None.

def setErrorHandler(self,f,arg):
        """Register an error handler that will be called back as
           f(arg,msg,severity,reserved).

           @reserved is currently always None."""
        libxml2mod.xmlParserCtxtSetErrorHandler(self._o,f,arg)