diff --git a/xmllint.c b/xmllint.c index 19f31168c..c737b1cd6 100644 --- a/xmllint.c +++ b/xmllint.c @@ -1141,7 +1141,6 @@ endDocumentDebug(void *ctx) fprintf(stdout, "SAX.endDocument()\n"); } -#ifdef LIBXML_SAX1_ENABLED /** * startElementDebug: * @ctxt: An XML parser context @@ -1186,7 +1185,6 @@ endElementDebug(void *ctx, const xmlChar *name) return; fprintf(stdout, "SAX.endElement(%s)\n", (char *) name); } -#endif /* LIBXML_SAX1_ENABLED */ /** * charactersDebug: @@ -1536,8 +1534,8 @@ static const xmlSAXHandler debugSAX2Handler = { setDocumentLocatorDebug, startDocumentDebug, endDocumentDebug, - NULL, - NULL, + startElementDebug, /* for HTML */ + endElementDebug, referenceDebug, charactersDebug, ignorableWhitespaceDebug,