1
0
mirror of https://github.com/GNOME/libxml2.git synced 2025-10-14 02:58:39 +08:00

valid: Undeprecate xmlAdd*Decl

Fixes #969.
This commit is contained in:
Nick Wellnhofer
2025-08-11 13:44:56 +02:00
parent f1e1f13b76
commit c4b278ecd3
2 changed files with 3 additions and 12 deletions

View File

@@ -107,7 +107,6 @@ typedef struct _xmlHashTable xmlRefTable;
typedef xmlRefTable *xmlRefTablePtr;
/* Notation */
XML_DEPRECATED
XMLPUBFUN xmlNotation *
xmlAddNotationDecl (xmlValidCtxt *ctxt,
xmlDtd *dtd,
@@ -170,7 +169,6 @@ XMLPUBFUN void
#endif /* LIBXML_OUTPUT_ENABLED */
/* Element */
XML_DEPRECATED
XMLPUBFUN xmlElement *
xmlAddElementDecl (xmlValidCtxt *ctxt,
xmlDtd *dtd,
@@ -206,7 +204,6 @@ XMLPUBFUN xmlEnumeration *
xmlCopyEnumeration (xmlEnumeration *cur);
/* Attribute */
XML_DEPRECATED
XMLPUBFUN xmlAttribute *
xmlAddAttributeDecl (xmlValidCtxt *ctxt,
xmlDtd *dtd,

12
valid.c
View File

@@ -1092,9 +1092,7 @@ xmlFreeElement(xmlElementPtr elem) {
/**
* Register a new element declaration.
*
* @deprecated Internal function, don't use.
*
* @param ctxt the validation context
* @param ctxt the validation context (optional)
* @param dtd pointer to the DTD
* @param name the entity name
* @param type the element type
@@ -1555,9 +1553,7 @@ xmlFreeAttribute(xmlAttributePtr attr) {
/**
* Register a new attribute declaration.
*
* @deprecated Internal function, don't use.
*
* @param ctxt the validation context
* @param ctxt the validation context (optional)
* @param dtd pointer to the DTD
* @param elem the element name
* @param name the attribute name
@@ -1918,10 +1914,8 @@ xmlFreeNotation(xmlNotationPtr nota) {
/**
* Register a new notation declaration.
*
* @deprecated Internal function, don't use.
*
* @param ctxt the validation context (optional)
* @param dtd pointer to the DTD
* @param ctxt the validation context
* @param name the entity name
* @param publicId the public identifier or NULL
* @param systemId the system identifier or NULL