mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2025-07-28 00:21:53 +03:00
implemented the XML_PARSE_NONET parser option. converted xmllint.c to use
* parser.c xmlIO.c include/libxml/parserInternals.h: implemented the XML_PARSE_NONET parser option. * xmllint.c: converted xmllint.c to use the option instead of relying on the global resolver variable. Daniel
This commit is contained in:
9
xmlIO.c
9
xmlIO.c
@ -3091,6 +3091,15 @@ xmlDefaultExternalEntityLoader(const char *URL, const char *ID,
|
||||
"xmlDefaultExternalEntityLoader(%s, xxx)\n", URL);
|
||||
#endif
|
||||
#ifdef LIBXML_CATALOG_ENABLED
|
||||
if ((ctxt != NULL) && (ctxt->options & XML_PARSE_NONET)) {
|
||||
int options = ctxt->options;
|
||||
|
||||
ctxt->options -= XML_PARSE_NONET;
|
||||
ret = xmlNoNetExternalEntityLoader(URL, ID, ctxt);
|
||||
ctxt->options = options;
|
||||
return(ret);
|
||||
}
|
||||
|
||||
/*
|
||||
* If the resource doesn't exists as a file,
|
||||
* try to load it from the resource pointed in the catalogs
|
||||
|
Reference in New Issue
Block a user