1
0
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:
Daniel Veillard
2003-11-03 14:28:31 +00:00
parent 7899c5c5d6
commit 61b9338c0f
5 changed files with 49 additions and 7 deletions

View File

@ -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