Exemplo n.º 1
0
 def SetErrorHandler(self, f, arg):
     """Register an error handler that will be called back as
        f(arg,msg,severity,locator)."""
     if f is None:
         libxml2mod.xmlTextReaderSetErrorHandler(self._o, None, None)
     else:
         libxml2mod.xmlTextReaderSetErrorHandler(self._o, _xmlTextReaderErrorFunc, (f, arg))
Exemplo n.º 2
0
 def SetErrorHandler(self,f,arg):
     """Register an error handler that will be called back as
        f(arg,msg,severity,locator)."""
     if f is None:
         libxml2mod.xmlTextReaderSetErrorHandler(\
             self._o,None,None)
     else:
         libxml2mod.xmlTextReaderSetErrorHandler(\
             self._o,_xmlTextReaderErrorFunc,(f,arg))