1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2025-07-29 11:41:22 +03:00

Deprecate internal parser functions

This commit is contained in:
Nick Wellnhofer
2022-08-25 20:57:30 +02:00
parent a308c0cdf7
commit 58fc89e8a9
5 changed files with 166 additions and 4 deletions

View File

@ -2865,6 +2865,8 @@ htmlParseHTMLAttribute(htmlParserCtxtPtr ctxt, const xmlChar stop) {
* @ctxt: an HTML parser context * @ctxt: an HTML parser context
* @str: location to store the entity name * @str: location to store the entity name
* *
* DEPRECATED: Internal function, don't use.
*
* parse an HTML ENTITY references * parse an HTML ENTITY references
* *
* [68] EntityRef ::= '&' Name ';' * [68] EntityRef ::= '&' Name ';'
@ -3573,6 +3575,8 @@ unfinished:
* htmlParseCharRef: * htmlParseCharRef:
* @ctxt: an HTML parser context * @ctxt: an HTML parser context
* *
* DEPRECATED: Internal function, don't use.
*
* parse Reference declarations * parse Reference declarations
* *
* [66] CharRef ::= '&#' [0-9]+ ';' | * [66] CharRef ::= '&#' [0-9]+ ';' |
@ -4470,6 +4474,8 @@ htmlParseContent(htmlParserCtxtPtr ctxt) {
* htmlParseElement: * htmlParseElement:
* @ctxt: an HTML parser context * @ctxt: an HTML parser context
* *
* DEPRECATED: Internal function, don't use.
*
* parse an HTML element, this is highly recursive * parse an HTML element, this is highly recursive
* this is kept for compatibility with previous code versions * this is kept for compatibility with previous code versions
* *

View File

@ -100,11 +100,14 @@ XMLPUBFUN int XMLCALL
htmlAutoCloseTag(htmlDocPtr doc, htmlAutoCloseTag(htmlDocPtr doc,
const xmlChar *name, const xmlChar *name,
htmlNodePtr elem); htmlNodePtr elem);
XML_DEPRECATED
XMLPUBFUN const htmlEntityDesc * XMLCALL XMLPUBFUN const htmlEntityDesc * XMLCALL
htmlParseEntityRef(htmlParserCtxtPtr ctxt, htmlParseEntityRef(htmlParserCtxtPtr ctxt,
const xmlChar **str); const xmlChar **str);
XML_DEPRECATED
XMLPUBFUN int XMLCALL XMLPUBFUN int XMLCALL
htmlParseCharRef(htmlParserCtxtPtr ctxt); htmlParseCharRef(htmlParserCtxtPtr ctxt);
XML_DEPRECATED
XMLPUBFUN void XMLCALL XMLPUBFUN void XMLCALL
htmlParseElement(htmlParserCtxtPtr ctxt); htmlParseElement(htmlParserCtxtPtr ctxt);

View File

@ -388,106 +388,148 @@ XMLPUBFUN xmlChar * XMLCALL
/** /**
* Generic production rules. * Generic production rules.
*/ */
XML_DEPRECATED
XMLPUBFUN const xmlChar * XMLCALL XMLPUBFUN const xmlChar * XMLCALL
xmlParseName (xmlParserCtxtPtr ctxt); xmlParseName (xmlParserCtxtPtr ctxt);
XML_DEPRECATED
XMLPUBFUN xmlChar * XMLCALL XMLPUBFUN xmlChar * XMLCALL
xmlParseNmtoken (xmlParserCtxtPtr ctxt); xmlParseNmtoken (xmlParserCtxtPtr ctxt);
XML_DEPRECATED
XMLPUBFUN xmlChar * XMLCALL XMLPUBFUN xmlChar * XMLCALL
xmlParseEntityValue (xmlParserCtxtPtr ctxt, xmlParseEntityValue (xmlParserCtxtPtr ctxt,
xmlChar **orig); xmlChar **orig);
XML_DEPRECATED
XMLPUBFUN xmlChar * XMLCALL XMLPUBFUN xmlChar * XMLCALL
xmlParseAttValue (xmlParserCtxtPtr ctxt); xmlParseAttValue (xmlParserCtxtPtr ctxt);
XML_DEPRECATED
XMLPUBFUN xmlChar * XMLCALL XMLPUBFUN xmlChar * XMLCALL
xmlParseSystemLiteral (xmlParserCtxtPtr ctxt); xmlParseSystemLiteral (xmlParserCtxtPtr ctxt);
XML_DEPRECATED
XMLPUBFUN xmlChar * XMLCALL XMLPUBFUN xmlChar * XMLCALL
xmlParsePubidLiteral (xmlParserCtxtPtr ctxt); xmlParsePubidLiteral (xmlParserCtxtPtr ctxt);
XML_DEPRECATED
XMLPUBFUN void XMLCALL XMLPUBFUN void XMLCALL
xmlParseCharData (xmlParserCtxtPtr ctxt, xmlParseCharData (xmlParserCtxtPtr ctxt,
int cdata); int cdata);
XML_DEPRECATED
XMLPUBFUN xmlChar * XMLCALL XMLPUBFUN xmlChar * XMLCALL
xmlParseExternalID (xmlParserCtxtPtr ctxt, xmlParseExternalID (xmlParserCtxtPtr ctxt,
xmlChar **publicID, xmlChar **publicID,
int strict); int strict);
XML_DEPRECATED
XMLPUBFUN void XMLCALL XMLPUBFUN void XMLCALL
xmlParseComment (xmlParserCtxtPtr ctxt); xmlParseComment (xmlParserCtxtPtr ctxt);
XML_DEPRECATED
XMLPUBFUN const xmlChar * XMLCALL XMLPUBFUN const xmlChar * XMLCALL
xmlParsePITarget (xmlParserCtxtPtr ctxt); xmlParsePITarget (xmlParserCtxtPtr ctxt);
XML_DEPRECATED
XMLPUBFUN void XMLCALL XMLPUBFUN void XMLCALL
xmlParsePI (xmlParserCtxtPtr ctxt); xmlParsePI (xmlParserCtxtPtr ctxt);
XML_DEPRECATED
XMLPUBFUN void XMLCALL XMLPUBFUN void XMLCALL
xmlParseNotationDecl (xmlParserCtxtPtr ctxt); xmlParseNotationDecl (xmlParserCtxtPtr ctxt);
XML_DEPRECATED
XMLPUBFUN void XMLCALL XMLPUBFUN void XMLCALL
xmlParseEntityDecl (xmlParserCtxtPtr ctxt); xmlParseEntityDecl (xmlParserCtxtPtr ctxt);
XML_DEPRECATED
XMLPUBFUN int XMLCALL XMLPUBFUN int XMLCALL
xmlParseDefaultDecl (xmlParserCtxtPtr ctxt, xmlParseDefaultDecl (xmlParserCtxtPtr ctxt,
xmlChar **value); xmlChar **value);
XML_DEPRECATED
XMLPUBFUN xmlEnumerationPtr XMLCALL XMLPUBFUN xmlEnumerationPtr XMLCALL
xmlParseNotationType (xmlParserCtxtPtr ctxt); xmlParseNotationType (xmlParserCtxtPtr ctxt);
XML_DEPRECATED
XMLPUBFUN xmlEnumerationPtr XMLCALL XMLPUBFUN xmlEnumerationPtr XMLCALL
xmlParseEnumerationType (xmlParserCtxtPtr ctxt); xmlParseEnumerationType (xmlParserCtxtPtr ctxt);
XML_DEPRECATED
XMLPUBFUN int XMLCALL XMLPUBFUN int XMLCALL
xmlParseEnumeratedType (xmlParserCtxtPtr ctxt, xmlParseEnumeratedType (xmlParserCtxtPtr ctxt,
xmlEnumerationPtr *tree); xmlEnumerationPtr *tree);
XML_DEPRECATED
XMLPUBFUN int XMLCALL XMLPUBFUN int XMLCALL
xmlParseAttributeType (xmlParserCtxtPtr ctxt, xmlParseAttributeType (xmlParserCtxtPtr ctxt,
xmlEnumerationPtr *tree); xmlEnumerationPtr *tree);
XML_DEPRECATED
XMLPUBFUN void XMLCALL XMLPUBFUN void XMLCALL
xmlParseAttributeListDecl(xmlParserCtxtPtr ctxt); xmlParseAttributeListDecl(xmlParserCtxtPtr ctxt);
XML_DEPRECATED
XMLPUBFUN xmlElementContentPtr XMLCALL XMLPUBFUN xmlElementContentPtr XMLCALL
xmlParseElementMixedContentDecl xmlParseElementMixedContentDecl
(xmlParserCtxtPtr ctxt, (xmlParserCtxtPtr ctxt,
int inputchk); int inputchk);
XML_DEPRECATED
XMLPUBFUN xmlElementContentPtr XMLCALL XMLPUBFUN xmlElementContentPtr XMLCALL
xmlParseElementChildrenContentDecl xmlParseElementChildrenContentDecl
(xmlParserCtxtPtr ctxt, (xmlParserCtxtPtr ctxt,
int inputchk); int inputchk);
XML_DEPRECATED
XMLPUBFUN int XMLCALL XMLPUBFUN int XMLCALL
xmlParseElementContentDecl(xmlParserCtxtPtr ctxt, xmlParseElementContentDecl(xmlParserCtxtPtr ctxt,
const xmlChar *name, const xmlChar *name,
xmlElementContentPtr *result); xmlElementContentPtr *result);
XML_DEPRECATED
XMLPUBFUN int XMLCALL XMLPUBFUN int XMLCALL
xmlParseElementDecl (xmlParserCtxtPtr ctxt); xmlParseElementDecl (xmlParserCtxtPtr ctxt);
XML_DEPRECATED
XMLPUBFUN void XMLCALL XMLPUBFUN void XMLCALL
xmlParseMarkupDecl (xmlParserCtxtPtr ctxt); xmlParseMarkupDecl (xmlParserCtxtPtr ctxt);
XML_DEPRECATED
XMLPUBFUN int XMLCALL XMLPUBFUN int XMLCALL
xmlParseCharRef (xmlParserCtxtPtr ctxt); xmlParseCharRef (xmlParserCtxtPtr ctxt);
XML_DEPRECATED
XMLPUBFUN xmlEntityPtr XMLCALL XMLPUBFUN xmlEntityPtr XMLCALL
xmlParseEntityRef (xmlParserCtxtPtr ctxt); xmlParseEntityRef (xmlParserCtxtPtr ctxt);
XML_DEPRECATED
XMLPUBFUN void XMLCALL XMLPUBFUN void XMLCALL
xmlParseReference (xmlParserCtxtPtr ctxt); xmlParseReference (xmlParserCtxtPtr ctxt);
XML_DEPRECATED
XMLPUBFUN void XMLCALL XMLPUBFUN void XMLCALL
xmlParsePEReference (xmlParserCtxtPtr ctxt); xmlParsePEReference (xmlParserCtxtPtr ctxt);
XML_DEPRECATED
XMLPUBFUN void XMLCALL XMLPUBFUN void XMLCALL
xmlParseDocTypeDecl (xmlParserCtxtPtr ctxt); xmlParseDocTypeDecl (xmlParserCtxtPtr ctxt);
#ifdef LIBXML_SAX1_ENABLED #ifdef LIBXML_SAX1_ENABLED
XML_DEPRECATED
XMLPUBFUN const xmlChar * XMLCALL XMLPUBFUN const xmlChar * XMLCALL
xmlParseAttribute (xmlParserCtxtPtr ctxt, xmlParseAttribute (xmlParserCtxtPtr ctxt,
xmlChar **value); xmlChar **value);
XML_DEPRECATED
XMLPUBFUN const xmlChar * XMLCALL XMLPUBFUN const xmlChar * XMLCALL
xmlParseStartTag (xmlParserCtxtPtr ctxt); xmlParseStartTag (xmlParserCtxtPtr ctxt);
XML_DEPRECATED
XMLPUBFUN void XMLCALL XMLPUBFUN void XMLCALL
xmlParseEndTag (xmlParserCtxtPtr ctxt); xmlParseEndTag (xmlParserCtxtPtr ctxt);
#endif /* LIBXML_SAX1_ENABLED */ #endif /* LIBXML_SAX1_ENABLED */
XML_DEPRECATED
XMLPUBFUN void XMLCALL XMLPUBFUN void XMLCALL
xmlParseCDSect (xmlParserCtxtPtr ctxt); xmlParseCDSect (xmlParserCtxtPtr ctxt);
XMLPUBFUN void XMLCALL XMLPUBFUN void XMLCALL
xmlParseContent (xmlParserCtxtPtr ctxt); xmlParseContent (xmlParserCtxtPtr ctxt);
XML_DEPRECATED
XMLPUBFUN void XMLCALL XMLPUBFUN void XMLCALL
xmlParseElement (xmlParserCtxtPtr ctxt); xmlParseElement (xmlParserCtxtPtr ctxt);
XML_DEPRECATED
XMLPUBFUN xmlChar * XMLCALL XMLPUBFUN xmlChar * XMLCALL
xmlParseVersionNum (xmlParserCtxtPtr ctxt); xmlParseVersionNum (xmlParserCtxtPtr ctxt);
XML_DEPRECATED
XMLPUBFUN xmlChar * XMLCALL XMLPUBFUN xmlChar * XMLCALL
xmlParseVersionInfo (xmlParserCtxtPtr ctxt); xmlParseVersionInfo (xmlParserCtxtPtr ctxt);
XML_DEPRECATED
XMLPUBFUN xmlChar * XMLCALL XMLPUBFUN xmlChar * XMLCALL
xmlParseEncName (xmlParserCtxtPtr ctxt); xmlParseEncName (xmlParserCtxtPtr ctxt);
XML_DEPRECATED
XMLPUBFUN const xmlChar * XMLCALL XMLPUBFUN const xmlChar * XMLCALL
xmlParseEncodingDecl (xmlParserCtxtPtr ctxt); xmlParseEncodingDecl (xmlParserCtxtPtr ctxt);
XML_DEPRECATED
XMLPUBFUN int XMLCALL XMLPUBFUN int XMLCALL
xmlParseSDDecl (xmlParserCtxtPtr ctxt); xmlParseSDDecl (xmlParserCtxtPtr ctxt);
XML_DEPRECATED
XMLPUBFUN void XMLCALL XMLPUBFUN void XMLCALL
xmlParseXMLDecl (xmlParserCtxtPtr ctxt); xmlParseXMLDecl (xmlParserCtxtPtr ctxt);
XML_DEPRECATED
XMLPUBFUN void XMLCALL XMLPUBFUN void XMLCALL
xmlParseTextDecl (xmlParserCtxtPtr ctxt); xmlParseTextDecl (xmlParserCtxtPtr ctxt);
XML_DEPRECATED
XMLPUBFUN void XMLCALL XMLPUBFUN void XMLCALL
xmlParseMisc (xmlParserCtxtPtr ctxt); xmlParseMisc (xmlParserCtxtPtr ctxt);
XMLPUBFUN void XMLCALL XMLPUBFUN void XMLCALL

View File

@ -2317,6 +2317,8 @@ xmlPushInput(xmlParserCtxtPtr ctxt, xmlParserInputPtr input) {
* xmlParseCharRef: * xmlParseCharRef:
* @ctxt: an XML parser context * @ctxt: an XML parser context
* *
* DEPRECATED: Internal function, don't use.
*
* parse Reference declarations * parse Reference declarations
* *
* [66] CharRef ::= '&#' [0-9]+ ';' | * [66] CharRef ::= '&#' [0-9]+ ';' |
@ -3324,6 +3326,8 @@ xmlParseNameComplex(xmlParserCtxtPtr ctxt) {
* xmlParseName: * xmlParseName:
* @ctxt: an XML parser context * @ctxt: an XML parser context
* *
* DEPRECATED: Internal function, don't use.
*
* parse an XML name. * parse an XML name.
* *
* [4] NameChar ::= Letter | Digit | '.' | '-' | '_' | ':' | * [4] NameChar ::= Letter | Digit | '.' | '-' | '_' | ':' |
@ -3642,6 +3646,8 @@ xmlParseStringName(xmlParserCtxtPtr ctxt, const xmlChar** str) {
* xmlParseNmtoken: * xmlParseNmtoken:
* @ctxt: an XML parser context * @ctxt: an XML parser context
* *
* DEPRECATED: Internal function, don't use.
*
* parse an XML Nmtoken. * parse an XML Nmtoken.
* *
* [7] Nmtoken ::= (NameChar)+ * [7] Nmtoken ::= (NameChar)+
@ -3747,6 +3753,8 @@ xmlParseNmtoken(xmlParserCtxtPtr ctxt) {
* @ctxt: an XML parser context * @ctxt: an XML parser context
* @orig: if non-NULL store a copy of the original entity value * @orig: if non-NULL store a copy of the original entity value
* *
* DEPRECATED: Internal function, don't use.
*
* parse a value for ENTITY declarations * parse a value for ENTITY declarations
* *
* [9] EntityValue ::= '"' ([^%&"] | PEReference | Reference)* '"' | * [9] EntityValue ::= '"' ([^%&"] | PEReference | Reference)* '"' |
@ -4143,6 +4151,8 @@ error:
* xmlParseAttValue: * xmlParseAttValue:
* @ctxt: an XML parser context * @ctxt: an XML parser context
* *
* DEPRECATED: Internal function, don't use.
*
* parse a value for an attribute * parse a value for an attribute
* Note: the parser won't do substitution of entities here, this * Note: the parser won't do substitution of entities here, this
* will be handled later in xmlStringGetNodeList * will be handled later in xmlStringGetNodeList
@ -4183,6 +4193,8 @@ xmlParseAttValue(xmlParserCtxtPtr ctxt) {
* xmlParseSystemLiteral: * xmlParseSystemLiteral:
* @ctxt: an XML parser context * @ctxt: an XML parser context
* *
* DEPRECATED: Internal function, don't use.
*
* parse an XML Literal * parse an XML Literal
* *
* [11] SystemLiteral ::= ('"' [^"]* '"') | ("'" [^']* "'") * [11] SystemLiteral ::= ('"' [^"]* '"') | ("'" [^']* "'")
@ -4273,6 +4285,8 @@ xmlParseSystemLiteral(xmlParserCtxtPtr ctxt) {
* xmlParsePubidLiteral: * xmlParsePubidLiteral:
* @ctxt: an XML parser context * @ctxt: an XML parser context
* *
* DEPRECATED: Internal function, don't use.
*
* parse an XML public literal * parse an XML public literal
* *
* [12] PubidLiteral ::= '"' PubidChar* '"' | "'" (PubidChar - "'")* "'" * [12] PubidLiteral ::= '"' PubidChar* '"' | "'" (PubidChar - "'")* "'"
@ -4401,6 +4415,8 @@ static const unsigned char test_char_data[256] = {
* @ctxt: an XML parser context * @ctxt: an XML parser context
* @cdata: int indicating whether we are within a CDATA section * @cdata: int indicating whether we are within a CDATA section
* *
* DEPRECATED: Internal function, don't use.
*
* parse a CharData section. * parse a CharData section.
* if we are within a CDATA section ']]>' marks an end of section. * if we are within a CDATA section ']]>' marks an end of section.
* *
@ -4655,6 +4671,8 @@ xmlParseCharDataComplex(xmlParserCtxtPtr ctxt, int cdata) {
* @strict: indicate whether we should restrict parsing to only * @strict: indicate whether we should restrict parsing to only
* production [75], see NOTE below * production [75], see NOTE below
* *
* DEPRECATED: Internal function, don't use.
*
* Parse an External ID or a Public ID * Parse an External ID or a Public ID
* *
* NOTE: Productions [75] and [83] interact badly since [75] can generate * NOTE: Productions [75] and [83] interact badly since [75] can generate
@ -4866,6 +4884,8 @@ not_terminated:
* xmlParseComment: * xmlParseComment:
* @ctxt: an XML parser context * @ctxt: an XML parser context
* *
* DEPRECATED: Internal function, don't use.
*
* Skip an XML (SGML) comment <!-- .... --> * Skip an XML (SGML) comment <!-- .... -->
* The spec says that "For compatibility, the string "--" (double-hyphen) * The spec says that "For compatibility, the string "--" (double-hyphen)
* must not occur within comments. " * must not occur within comments. "
@ -5041,6 +5061,8 @@ get_more:
* xmlParsePITarget: * xmlParsePITarget:
* @ctxt: an XML parser context * @ctxt: an XML parser context
* *
* DEPRECATED: Internal function, don't use.
*
* parse the name of a PI * parse the name of a PI
* *
* [17] PITarget ::= Name - (('X' | 'x') ('M' | 'm') ('L' | 'l')) * [17] PITarget ::= Name - (('X' | 'x') ('M' | 'm') ('L' | 'l'))
@ -5149,6 +5171,8 @@ error:
* xmlParsePI: * xmlParsePI:
* @ctxt: an XML parser context * @ctxt: an XML parser context
* *
* DEPRECATED: Internal function, don't use.
*
* parse an XML Processing Instruction. * parse an XML Processing Instruction.
* *
* [16] PI ::= '<?' PITarget (S (Char* - (Char* '?>' Char*)))? '?>' * [16] PI ::= '<?' PITarget (S (Char* - (Char* '?>' Char*)))? '?>'
@ -5307,6 +5331,8 @@ xmlParsePI(xmlParserCtxtPtr ctxt) {
* xmlParseNotationDecl: * xmlParseNotationDecl:
* @ctxt: an XML parser context * @ctxt: an XML parser context
* *
* DEPRECATED: Internal function, don't use.
*
* parse a notation declaration * parse a notation declaration
* *
* [82] NotationDecl ::= '<!NOTATION' S Name S (ExternalID | PublicID) S? '>' * [82] NotationDecl ::= '<!NOTATION' S Name S (ExternalID | PublicID) S? '>'
@ -5379,6 +5405,8 @@ xmlParseNotationDecl(xmlParserCtxtPtr ctxt) {
* xmlParseEntityDecl: * xmlParseEntityDecl:
* @ctxt: an XML parser context * @ctxt: an XML parser context
* *
* DEPRECATED: Internal function, don't use.
*
* parse <!ENTITY declarations * parse <!ENTITY declarations
* *
* [70] EntityDecl ::= GEDecl | PEDecl * [70] EntityDecl ::= GEDecl | PEDecl
@ -5646,6 +5674,8 @@ done:
* @ctxt: an XML parser context * @ctxt: an XML parser context
* @value: Receive a possible fixed default value for the attribute * @value: Receive a possible fixed default value for the attribute
* *
* DEPRECATED: Internal function, don't use.
*
* Parse an attribute default declaration * Parse an attribute default declaration
* *
* [60] DefaultDecl ::= '#REQUIRED' | '#IMPLIED' | (('#FIXED' S)? AttValue) * [60] DefaultDecl ::= '#REQUIRED' | '#IMPLIED' | (('#FIXED' S)? AttValue)
@ -5707,6 +5737,8 @@ xmlParseDefaultDecl(xmlParserCtxtPtr ctxt, xmlChar **value) {
* xmlParseNotationType: * xmlParseNotationType:
* @ctxt: an XML parser context * @ctxt: an XML parser context
* *
* DEPRECATED: Internal function, don't use.
*
* parse an Notation attribute type. * parse an Notation attribute type.
* *
* Note: the leading 'NOTATION' S part has already being parsed... * Note: the leading 'NOTATION' S part has already being parsed...
@ -5779,6 +5811,8 @@ xmlParseNotationType(xmlParserCtxtPtr ctxt) {
* xmlParseEnumerationType: * xmlParseEnumerationType:
* @ctxt: an XML parser context * @ctxt: an XML parser context
* *
* DEPRECATED: Internal function, don't use.
*
* parse an Enumeration attribute type. * parse an Enumeration attribute type.
* *
* [59] Enumeration ::= '(' S? Nmtoken (S? '|' S? Nmtoken)* S? ')' * [59] Enumeration ::= '(' S? Nmtoken (S? '|' S? Nmtoken)* S? ')'
@ -5849,6 +5883,8 @@ xmlParseEnumerationType(xmlParserCtxtPtr ctxt) {
* @ctxt: an XML parser context * @ctxt: an XML parser context
* @tree: the enumeration tree built while parsing * @tree: the enumeration tree built while parsing
* *
* DEPRECATED: Internal function, don't use.
*
* parse an Enumerated attribute type. * parse an Enumerated attribute type.
* *
* [57] EnumeratedType ::= NotationType | Enumeration * [57] EnumeratedType ::= NotationType | Enumeration
@ -5882,6 +5918,8 @@ xmlParseEnumeratedType(xmlParserCtxtPtr ctxt, xmlEnumerationPtr *tree) {
* @ctxt: an XML parser context * @ctxt: an XML parser context
* @tree: the enumeration tree built while parsing * @tree: the enumeration tree built while parsing
* *
* DEPRECATED: Internal function, don't use.
*
* parse the Attribute list def for an element * parse the Attribute list def for an element
* *
* [54] AttType ::= StringType | TokenizedType | EnumeratedType * [54] AttType ::= StringType | TokenizedType | EnumeratedType
@ -5957,6 +5995,8 @@ xmlParseAttributeType(xmlParserCtxtPtr ctxt, xmlEnumerationPtr *tree) {
* xmlParseAttributeListDecl: * xmlParseAttributeListDecl:
* @ctxt: an XML parser context * @ctxt: an XML parser context
* *
* DEPRECATED: Internal function, don't use.
*
* : parse the Attribute list def for an element * : parse the Attribute list def for an element
* *
* [52] AttlistDecl ::= '<!ATTLIST' S Name AttDef* S? '>' * [52] AttlistDecl ::= '<!ATTLIST' S Name AttDef* S? '>'
@ -6078,6 +6118,8 @@ xmlParseAttributeListDecl(xmlParserCtxtPtr ctxt) {
* @ctxt: an XML parser context * @ctxt: an XML parser context
* @inputchk: the input used for the current entity, needed for boundary checks * @inputchk: the input used for the current entity, needed for boundary checks
* *
* DEPRECATED: Internal function, don't use.
*
* parse the declaration for a Mixed Element content * parse the declaration for a Mixed Element content
* The leading '(' and spaces have been skipped in xmlParseElementContentDecl * The leading '(' and spaces have been skipped in xmlParseElementContentDecl
* *
@ -6496,6 +6538,8 @@ xmlParseElementChildrenContentDeclPriv(xmlParserCtxtPtr ctxt, int inputchk,
* @ctxt: an XML parser context * @ctxt: an XML parser context
* @inputchk: the input used for the current entity, needed for boundary checks * @inputchk: the input used for the current entity, needed for boundary checks
* *
* DEPRECATED: Internal function, don't use.
*
* parse the declaration for a Mixed Element content * parse the declaration for a Mixed Element content
* The leading '(' and spaces have been skipped in xmlParseElementContentDecl * The leading '(' and spaces have been skipped in xmlParseElementContentDecl
* *
@ -6533,6 +6577,8 @@ xmlParseElementChildrenContentDecl(xmlParserCtxtPtr ctxt, int inputchk) {
* @name: the name of the element being defined. * @name: the name of the element being defined.
* @result: the Element Content pointer will be stored here if any * @result: the Element Content pointer will be stored here if any
* *
* DEPRECATED: Internal function, don't use.
*
* parse the declaration for an Element content either Mixed or Children, * parse the declaration for an Element content either Mixed or Children,
* the cases EMPTY and ANY are handled directly in xmlParseElementDecl * the cases EMPTY and ANY are handled directly in xmlParseElementDecl
* *
@ -6577,6 +6623,8 @@ xmlParseElementContentDecl(xmlParserCtxtPtr ctxt, const xmlChar *name,
* xmlParseElementDecl: * xmlParseElementDecl:
* @ctxt: an XML parser context * @ctxt: an XML parser context
* *
* DEPRECATED: Internal function, don't use.
*
* parse an Element declaration. * parse an Element declaration.
* *
* [45] elementdecl ::= '<!ELEMENT' S Name S contentspec S? '>' * [45] elementdecl ::= '<!ELEMENT' S Name S contentspec S? '>'
@ -6836,6 +6884,8 @@ error:
* xmlParseMarkupDecl: * xmlParseMarkupDecl:
* @ctxt: an XML parser context * @ctxt: an XML parser context
* *
* DEPRECATED: Internal function, don't use.
*
* parse Markup declarations * parse Markup declarations
* *
* [29] markupdecl ::= elementdecl | AttlistDecl | EntityDecl | * [29] markupdecl ::= elementdecl | AttlistDecl | EntityDecl |
@ -6898,6 +6948,8 @@ xmlParseMarkupDecl(xmlParserCtxtPtr ctxt) {
* xmlParseTextDecl: * xmlParseTextDecl:
* @ctxt: an XML parser context * @ctxt: an XML parser context
* *
* DEPRECATED: Internal function, don't use.
*
* parse an XML declaration header for external entities * parse an XML declaration header for external entities
* *
* [77] TextDecl ::= '<?xml' VersionInfo? EncodingDecl S? '?>' * [77] TextDecl ::= '<?xml' VersionInfo? EncodingDecl S? '?>'
@ -7059,6 +7111,8 @@ xmlParseExternalSubset(xmlParserCtxtPtr ctxt, const xmlChar *ExternalID,
* xmlParseReference: * xmlParseReference:
* @ctxt: an XML parser context * @ctxt: an XML parser context
* *
* DEPRECATED: Internal function, don't use.
*
* parse and handle entity references in content, depending on the SAX * parse and handle entity references in content, depending on the SAX
* interface, this may end-up in a call to character() if this is a * interface, this may end-up in a call to character() if this is a
* CharRef, a predefined entity, if there is no reference() callback. * CharRef, a predefined entity, if there is no reference() callback.
@ -7495,6 +7549,8 @@ xmlParseReference(xmlParserCtxtPtr ctxt) {
* xmlParseEntityRef: * xmlParseEntityRef:
* @ctxt: an XML parser context * @ctxt: an XML parser context
* *
* DEPRECATED: Internal function, don't use.
*
* parse ENTITY references declarations * parse ENTITY references declarations
* *
* [68] EntityRef ::= '&' Name ';' * [68] EntityRef ::= '&' Name ';'
@ -7875,6 +7931,8 @@ xmlParseStringEntityRef(xmlParserCtxtPtr ctxt, const xmlChar ** str) {
* xmlParsePEReference: * xmlParsePEReference:
* @ctxt: an XML parser context * @ctxt: an XML parser context
* *
* DEPRECATED: Internal function, don't use.
*
* parse PEReference declarations * parse PEReference declarations
* The entity content is handled directly by pushing it's content as * The entity content is handled directly by pushing it's content as
* a new input stream. * a new input stream.
@ -8260,6 +8318,8 @@ xmlParseStringPEReference(xmlParserCtxtPtr ctxt, const xmlChar **str) {
* xmlParseDocTypeDecl: * xmlParseDocTypeDecl:
* @ctxt: an XML parser context * @ctxt: an XML parser context
* *
* DEPRECATED: Internal function, don't use.
*
* parse a DOCTYPE declaration * parse a DOCTYPE declaration
* *
* [28] doctypedecl ::= '<!DOCTYPE' S Name (S ExternalID)? S? * [28] doctypedecl ::= '<!DOCTYPE' S Name (S ExternalID)? S?
@ -8405,7 +8465,7 @@ xmlParseInternalSubset(xmlParserCtxtPtr ctxt) {
* @ctxt: an XML parser context * @ctxt: an XML parser context
* @value: a xmlChar ** used to store the value of the attribute * @value: a xmlChar ** used to store the value of the attribute
* *
* DEPRECATED: Don't use. * DEPRECATED: Internal function, don't use.
* *
* parse an attribute * parse an attribute
* *
@ -8500,7 +8560,7 @@ xmlParseAttribute(xmlParserCtxtPtr ctxt, xmlChar **value) {
* xmlParseStartTag: * xmlParseStartTag:
* @ctxt: an XML parser context * @ctxt: an XML parser context
* *
* DEPRECATED: Don't use. * DEPRECATED: Internal function, don't use.
* *
* parse a start of tag either for rule element or * parse a start of tag either for rule element or
* EmptyElement. In both case we don't parse the tag closing chars. * EmptyElement. In both case we don't parse the tag closing chars.
@ -8659,8 +8719,6 @@ failed:
* @line: line of the start tag * @line: line of the start tag
* @nsNr: number of namespaces on the start tag * @nsNr: number of namespaces on the start tag
* *
* DEPRECATED: Don't use.
*
* parse an end of tag * parse an end of tag
* *
* [42] ETag ::= '</' Name S? '>' * [42] ETag ::= '</' Name S? '>'
@ -8723,6 +8781,8 @@ xmlParseEndTag1(xmlParserCtxtPtr ctxt, int line) {
* xmlParseEndTag: * xmlParseEndTag:
* @ctxt: an XML parser context * @ctxt: an XML parser context
* *
* DEPRECATED: Internal function, don't use.
*
* parse an end of tag * parse an end of tag
* *
* [42] ETag ::= '</' Name S? '>' * [42] ETag ::= '</' Name S? '>'
@ -9752,6 +9812,8 @@ xmlParseEndTag2(xmlParserCtxtPtr ctxt, const xmlStartTag *tag) {
* xmlParseCDSect: * xmlParseCDSect:
* @ctxt: an XML parser context * @ctxt: an XML parser context
* *
* DEPRECATED: Internal function, don't use.
*
* Parse escaped pure raw content. * Parse escaped pure raw content.
* *
* [18] CDSect ::= CDStart CData CDEnd * [18] CDSect ::= CDStart CData CDEnd
@ -9972,6 +10034,8 @@ xmlParseContent(xmlParserCtxtPtr ctxt) {
* xmlParseElement: * xmlParseElement:
* @ctxt: an XML parser context * @ctxt: an XML parser context
* *
* DEPRECATED: Internal function, don't use.
*
* parse an XML element * parse an XML element
* *
* [39] element ::= EmptyElemTag | STag content ETag * [39] element ::= EmptyElemTag | STag content ETag
@ -10175,6 +10239,8 @@ xmlParseElementEnd(xmlParserCtxtPtr ctxt) {
* xmlParseVersionNum: * xmlParseVersionNum:
* @ctxt: an XML parser context * @ctxt: an XML parser context
* *
* DEPRECATED: Internal function, don't use.
*
* parse the XML version value. * parse the XML version value.
* *
* [26] VersionNum ::= '1.' [0-9]+ * [26] VersionNum ::= '1.' [0-9]+
@ -10235,6 +10301,8 @@ xmlParseVersionNum(xmlParserCtxtPtr ctxt) {
* xmlParseVersionInfo: * xmlParseVersionInfo:
* @ctxt: an XML parser context * @ctxt: an XML parser context
* *
* DEPRECATED: Internal function, don't use.
*
* parse the XML version. * parse the XML version.
* *
* [24] VersionInfo ::= S 'version' Eq (' VersionNum ' | " VersionNum ") * [24] VersionInfo ::= S 'version' Eq (' VersionNum ' | " VersionNum ")
@ -10282,6 +10350,8 @@ xmlParseVersionInfo(xmlParserCtxtPtr ctxt) {
* xmlParseEncName: * xmlParseEncName:
* @ctxt: an XML parser context * @ctxt: an XML parser context
* *
* DEPRECATED: Internal function, don't use.
*
* parse the XML encoding name * parse the XML encoding name
* *
* [81] EncName ::= [A-Za-z] ([A-Za-z0-9._] | '-')* * [81] EncName ::= [A-Za-z] ([A-Za-z0-9._] | '-')*
@ -10344,6 +10414,8 @@ xmlParseEncName(xmlParserCtxtPtr ctxt) {
* xmlParseEncodingDecl: * xmlParseEncodingDecl:
* @ctxt: an XML parser context * @ctxt: an XML parser context
* *
* DEPRECATED: Internal function, don't use.
*
* parse the XML encoding declaration * parse the XML encoding declaration
* *
* [80] EncodingDecl ::= S 'encoding' Eq ('"' EncName '"' | "'" EncName "'") * [80] EncodingDecl ::= S 'encoding' Eq ('"' EncName '"' | "'" EncName "'")
@ -10458,6 +10530,8 @@ xmlParseEncodingDecl(xmlParserCtxtPtr ctxt) {
* xmlParseSDDecl: * xmlParseSDDecl:
* @ctxt: an XML parser context * @ctxt: an XML parser context
* *
* DEPRECATED: Internal function, don't use.
*
* parse the XML standalone declaration * parse the XML standalone declaration
* *
* [32] SDDecl ::= S 'standalone' Eq * [32] SDDecl ::= S 'standalone' Eq
@ -10542,6 +10616,8 @@ xmlParseSDDecl(xmlParserCtxtPtr ctxt) {
* xmlParseXMLDecl: * xmlParseXMLDecl:
* @ctxt: an XML parser context * @ctxt: an XML parser context
* *
* DEPRECATED: Internal function, don't use.
*
* parse an XML declaration header * parse an XML declaration header
* *
* [23] XMLDecl ::= '<?xml' VersionInfo EncodingDecl? SDDecl? S? '?>' * [23] XMLDecl ::= '<?xml' VersionInfo EncodingDecl? SDDecl? S? '?>'
@ -10657,6 +10733,8 @@ xmlParseXMLDecl(xmlParserCtxtPtr ctxt) {
* xmlParseMisc: * xmlParseMisc:
* @ctxt: an XML parser context * @ctxt: an XML parser context
* *
* DEPRECATED: Internal function, don't use.
*
* parse an XML Misc* optional field. * parse an XML Misc* optional field.
* *
* [27] Misc ::= Comment | PI | S * [27] Misc ::= Comment | PI | S

View File

@ -291,6 +291,8 @@ skip_impl = (
deprecated_funcs = { deprecated_funcs = {
'htmlDefaultSAXHandlerInit': True, 'htmlDefaultSAXHandlerInit': True,
'htmlInitAutoClose': True, 'htmlInitAutoClose': True,
'htmlParseCharRef': True,
'htmlParseElement': True,
'xmlCleanupCharEncodingHandlers': True, 'xmlCleanupCharEncodingHandlers': True,
'xmlCleanupGlobals': True, 'xmlCleanupGlobals': True,
'xmlDefaultSAXHandlerInit': True, 'xmlDefaultSAXHandlerInit': True,
@ -310,9 +312,40 @@ deprecated_funcs = {
'xmlNanoFTPProxy': True, 'xmlNanoFTPProxy': True,
'xmlNanoFTPScanProxy': True, 'xmlNanoFTPScanProxy': True,
'xmlNewGlobalNs': True, 'xmlNewGlobalNs': True,
'xmlParseAttValue': True,
'xmlParseAttributeListDecl': True,
'xmlParseCDSect': True,
'xmlParseCharData': True,
'xmlParseCharRef': True,
'xmlParseComment': True,
'xmlParseDocTypeDecl': True,
'xmlParseElement': True,
'xmlParseElementDecl': True,
'xmlParseEncName': True,
'xmlParseEncodingDecl': True,
'xmlParseEndTag': True,
'xmlParseEntity': True, 'xmlParseEntity': True,
'xmlParseEntityDecl': True,
'xmlParseEntityRef': True,
'xmlParseMarkupDecl': True,
'xmlParseMisc': True,
'xmlParseName': True,
'xmlParseNamespace': True, 'xmlParseNamespace': True,
'xmlParseNmtoken': True,
'xmlParseNotationDecl': True,
'xmlParsePEReference': True,
'xmlParsePI': True,
'xmlParsePITarget': True,
'xmlParsePubidLiteral': True,
'xmlParseQuotedString': True, 'xmlParseQuotedString': True,
'xmlParseReference': True,
'xmlParseSDDecl': True,
'xmlParseStartTag': True,
'xmlParseSystemLiteral': True,
'xmlParseTextDecl': True,
'xmlParseVersionInfo': True,
'xmlParseVersionNum': True,
'xmlParseXMLDecl': True,
'xmlParserHandleReference': True, 'xmlParserHandleReference': True,
'xmlRecoverDoc': True, 'xmlRecoverDoc': True,
'xmlRecoverFile': True, 'xmlRecoverFile': True,