mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2025-07-29 11:41:22 +03:00
Bugfix - parser.c xmlIO.c xmlIO.h: fixed bug 26650, and improved the
Bugfix - parser.c xmlIO.c xmlIO.h: fixed bug 26650, and improved the global init function. Daniel
This commit is contained in:
9
parser.c
9
parser.c
@ -9499,6 +9499,10 @@ xmlParseDoc(xmlChar *cur) {
|
||||
* *
|
||||
************************************************************************/
|
||||
|
||||
#ifdef LIBXML_XPATH_ENABLED
|
||||
#include <libxml/xpath.h>
|
||||
#endif
|
||||
|
||||
static int xmlParserInitialized = 0;
|
||||
|
||||
/**
|
||||
@ -9516,9 +9520,14 @@ xmlInitParser(void) {
|
||||
xmlInitCharEncodingHandlers();
|
||||
xmlInitializePredefinedEntities();
|
||||
xmlDefaultSAXHandlerInit();
|
||||
xmlRegisterDefaultInputCallbacks();
|
||||
xmlRegisterDefaultOutputCallbacks();
|
||||
#ifdef LIBXML_HTML_ENABLED
|
||||
htmlInitAutoClose();
|
||||
htmlDefaultSAXHandlerInit();
|
||||
#endif
|
||||
#ifdef LIBXML_XPATH_ENABLED
|
||||
xmlXPathInit();
|
||||
#endif
|
||||
xmlParserInitialized = 1;
|
||||
}
|
||||
|
Reference in New Issue
Block a user