1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2024-10-26 12:25:09 +03:00

SAX2: Deprecate xmlSAX2StartElement

This commit is contained in:
Nick Wellnhofer 2024-06-26 04:30:10 +02:00
parent 71eb710914
commit 5cf5b542d9
2 changed files with 6 additions and 0 deletions

4
SAX2.c
View File

@ -1689,6 +1689,8 @@ xmlSAX2StartHtmlElement(xmlParserCtxtPtr ctxt, const xmlChar *fullname,
* @fullname: The element name, including namespace prefix
* @atts: An array of name/value attributes pairs, NULL terminated
*
* DEPRECATED: Don't call this function directly.
*
* Called when an opening tag has been processed.
*
* Used for HTML and SAX1.
@ -1722,6 +1724,8 @@ xmlSAX2StartElement(void *ctx, const xmlChar *fullname, const xmlChar **atts) {
* @ctx: the user data (XML parser context)
* @name: The element name
*
* DEPRECATED: Don't call this function directly.
*
* called when the end of an element has been detected.
*
* Used for HTML and SAX1.

View File

@ -95,10 +95,12 @@ XMLPUBFUN void
xmlSAX2StartDocument (void *ctx);
XMLPUBFUN void
xmlSAX2EndDocument (void *ctx);
XML_DEPRECATED
XMLPUBFUN void
xmlSAX2StartElement (void *ctx,
const xmlChar *fullname,
const xmlChar **atts);
XML_DEPRECATED
XMLPUBFUN void
xmlSAX2EndElement (void *ctx,
const xmlChar *name);