mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2025-07-29 11:41:22 +03:00
valid: Deprecate a few functions and xmllint --insert
This commit is contained in:
@ -585,7 +585,10 @@
|
|||||||
<varlistentry>
|
<varlistentry>
|
||||||
<term><option>--insert</option></term>
|
<term><option>--insert</option></term>
|
||||||
<listitem>
|
<listitem>
|
||||||
<para>Test for valid insertions.</para>
|
<para>
|
||||||
|
Test for valid insertions. DEPRECATED: This feature
|
||||||
|
will be removed.
|
||||||
|
</para>
|
||||||
</listitem>
|
</listitem>
|
||||||
</varlistentry>
|
</varlistentry>
|
||||||
|
|
||||||
|
@ -372,6 +372,7 @@ XMLPUBFUN int
|
|||||||
const xmlChar *notationName);
|
const xmlChar *notationName);
|
||||||
#endif /* LIBXML_VALID_ENABLED */
|
#endif /* LIBXML_VALID_ENABLED */
|
||||||
|
|
||||||
|
XML_DEPRECATED
|
||||||
XMLPUBFUN int
|
XMLPUBFUN int
|
||||||
xmlIsMixedElement (xmlDoc *doc,
|
xmlIsMixedElement (xmlDoc *doc,
|
||||||
const xmlChar *name);
|
const xmlChar *name);
|
||||||
@ -397,12 +398,14 @@ XMLPUBFUN xmlElement *
|
|||||||
|
|
||||||
#ifdef LIBXML_VALID_ENABLED
|
#ifdef LIBXML_VALID_ENABLED
|
||||||
|
|
||||||
|
XML_DEPRECATED
|
||||||
XMLPUBFUN int
|
XMLPUBFUN int
|
||||||
xmlValidGetPotentialChildren(xmlElementContent *ctree,
|
xmlValidGetPotentialChildren(xmlElementContent *ctree,
|
||||||
const xmlChar **names,
|
const xmlChar **names,
|
||||||
int *len,
|
int *len,
|
||||||
int max);
|
int max);
|
||||||
|
|
||||||
|
/* only needed for `xmllint --insert` */
|
||||||
XMLPUBFUN int
|
XMLPUBFUN int
|
||||||
xmlValidGetValidElements(xmlNode *prev,
|
xmlValidGetValidElements(xmlNode *prev,
|
||||||
xmlNode *next,
|
xmlNode *next,
|
||||||
|
@ -605,6 +605,7 @@ deprecated_funcs = {
|
|||||||
'xmlIsExtender': True,
|
'xmlIsExtender': True,
|
||||||
'xmlIsIdeographic': True,
|
'xmlIsIdeographic': True,
|
||||||
'xmlIsLetter': True,
|
'xmlIsLetter': True,
|
||||||
|
'xmlIsMixedElement': True,
|
||||||
'xmlIsPubidChar': True,
|
'xmlIsPubidChar': True,
|
||||||
'xmlIsRef': True,
|
'xmlIsRef': True,
|
||||||
'xmlKeepBlanksDefault': True,
|
'xmlKeepBlanksDefault': True,
|
||||||
|
6
valid.c
6
valid.c
@ -3020,6 +3020,8 @@ xmlValidateNotationUse(xmlValidCtxt *ctxt, xmlDoc *doc,
|
|||||||
* Search in the DTDs whether an element accepts mixed content
|
* Search in the DTDs whether an element accepts mixed content
|
||||||
* or ANY (basically if it is supposed to accept text children).
|
* or ANY (basically if it is supposed to accept text children).
|
||||||
*
|
*
|
||||||
|
* @deprecated Internal function, don't use.
|
||||||
|
*
|
||||||
* @param doc the document
|
* @param doc the document
|
||||||
* @param name the element name
|
* @param name the element name
|
||||||
* @returns 0 if no, 1 if yes, and -1 if no element description
|
* @returns 0 if no, 1 if yes, and -1 if no element description
|
||||||
@ -6375,6 +6377,8 @@ xmlCtxtValidateDocument(xmlParserCtxt *ctxt, xmlDoc *doc) {
|
|||||||
/**
|
/**
|
||||||
* Build/extend a list of potential children allowed by the content tree
|
* Build/extend a list of potential children allowed by the content tree
|
||||||
*
|
*
|
||||||
|
* @deprecated Internal function, don't use.
|
||||||
|
*
|
||||||
* @param ctree an element content tree
|
* @param ctree an element content tree
|
||||||
* @param names an array to store the list of child names
|
* @param names an array to store the list of child names
|
||||||
* @param len a pointer to the number of element in the list
|
* @param len a pointer to the number of element in the list
|
||||||
@ -6437,6 +6441,8 @@ static void xmlNoValidityErr(void *ctx ATTRIBUTE_UNUSED,
|
|||||||
* pointers to the element names are inserted at the beginning of the array
|
* pointers to the element names are inserted at the beginning of the array
|
||||||
* and do not need to be freed.
|
* and do not need to be freed.
|
||||||
*
|
*
|
||||||
|
* @deprecated This feature will be removed.
|
||||||
|
*
|
||||||
* @param prev an element to insert after
|
* @param prev an element to insert after
|
||||||
* @param next an element to insert next
|
* @param next an element to insert next
|
||||||
* @param names an array to store the list of child names
|
* @param names an array to store the list of child names
|
||||||
|
Reference in New Issue
Block a user