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

Function xmlSAX2InitDefaultSAXHandler

ThirdParty/libxml2/vtklibxml2/SAX2.c:2708–2719  ·  view source on GitHub ↗

* xmlSAX2InitDefaultSAXHandler: * @hdlr: the SAX handler * @warning: flag if non-zero sets the handler warning procedure * * Initialize the default XML SAX2 handler */

Source from the content-addressed store, hash-verified

2706 * Initialize the default XML SAX2 handler
2707 */
2708void
2709xmlSAX2InitDefaultSAXHandler(xmlSAXHandler *hdlr, int warning)
2710{
2711 if ((hdlr == NULL) || (hdlr->initialized != 0))
2712 return;
2713
2714 xmlSAXVersion(hdlr, xmlSAX2DefaultVersionValue);
2715 if (warning == 0)
2716 hdlr->warning = NULL;
2717 else
2718 hdlr->warning = xmlParserWarning;
2719}
2720
2721/**
2722 * xmlDefaultSAXHandlerInit:

Callers 2

xmlNewTextWriterDocFunction · 0.85
xmlNewTextWriterTreeFunction · 0.85

Calls 1

xmlSAXVersionFunction · 0.85

Tested by

no test coverage detected