1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2025-10-21 14:53:44 +03:00

parser: Implement xmlCtxtParseDtd and xmlCtxtValidateDtd

This allows to use the context's error handler, options and other
settings.

Fixes #808.
This commit is contained in:
Nick Wellnhofer
2024-11-15 16:30:52 +01:00
parent 764b8086d1
commit 7f8c436c75
3 changed files with 100 additions and 95 deletions

View File

@@ -1183,6 +1183,15 @@ XMLPUBFUN xmlDocPtr
#endif /* LIBXML_SAX1_ENABLED */
#ifdef LIBXML_VALID_ENABLED
XMLPUBFUN xmlDtdPtr
xmlCtxtParseDtd (xmlParserCtxtPtr ctxt,
xmlParserInputPtr input,
const xmlChar *ExternalID,
const xmlChar *SystemID);
XMLPUBFUN int
xmlCtxtValidateDtd (xmlParserCtxtPtr ctxt,
xmlDocPtr doc,
xmlDtdPtr dtd);
XML_DEPRECATED
XMLPUBFUN xmlDtdPtr
xmlSAXParseDTD (xmlSAXHandlerPtr sax,