MCPcopy Create free account
hub / github.com/Kitware/VTK / xmlCtxtSetErrorHandler

Function xmlCtxtSetErrorHandler

ThirdParty/libxml2/vtklibxml2/parserInternals.c:114–122  ·  view source on GitHub ↗

* xmlCtxtSetErrorHandler: * @ctxt: an XML parser context * @handler: error handler * @data: data for error handler * * Register a callback function that will be called on errors and * warnings. If handler is NULL, the error handler will be deactivated. * * This is the recommended way to collect errors from the parser and * takes precedence over all other error reporting mechanisms. *

Source from the content-addressed store, hash-verified

112 * Available since 2.13.0.
113 */
114void
115xmlCtxtSetErrorHandler(xmlParserCtxtPtr ctxt, xmlStructuredErrorFunc handler,
116 void *data)
117{
118 if (ctxt == NULL)
119 return;
120 ctxt->errorHandler = handler;
121 ctxt->errorCtxt = data;
122}
123
124/**
125 * xmlCtxtErrMemory:

Callers 15

xmlconfTestInvalidFunction · 0.85
xmlconfTestValidFunction · 0.85
xmlconfTestNotNSWFFunction · 0.85
xmlconfTestNotWFFunction · 0.85
xmlSchemaAddSchemaDocFunction · 0.85
xmlXIncludeParseFileFunction · 0.85
xmlXIncludeLoadTxtFunction · 0.85
pushParseTestFunction · 0.85
pushBoundaryTestFunction · 0.85
errParseTestFunction · 0.85

Calls

no outgoing calls

Tested by 5

pushParseTestFunction · 0.68
pushBoundaryTestFunction · 0.68
errParseTestFunction · 0.68
fdParseTestFunction · 0.68
xmlidDocTestFunction · 0.68