13#ifdef LIBXML_LEGACY_ENABLED
30#ifdef LIBXML_HTML_ENABLED
55 static int deprecated = 0;
59 "htmlDecodeEntities() deprecated function reached\n");
73xmlInitializePredefinedEntities(
void)
84xmlCleanupPredefinedEntities(
void)
88static const char*
const xmlFeaturesList[] = {
93 "fetch external entities",
94 "substitute entities",
104 "SAX function internalSubset",
105 "SAX function isStandalone",
106 "SAX function hasInternalSubset",
107 "SAX function hasExternalSubset",
108 "SAX function resolveEntity",
109 "SAX function getEntity",
110 "SAX function entityDecl",
111 "SAX function notationDecl",
112 "SAX function attributeDecl",
113 "SAX function elementDecl",
114 "SAX function unparsedEntityDecl",
115 "SAX function setDocumentLocator",
116 "SAX function startDocument",
117 "SAX function endDocument",
118 "SAX function startElement",
119 "SAX function endElement",
120 "SAX function reference",
121 "SAX function characters",
122 "SAX function ignorableWhitespace",
123 "SAX function processingInstruction",
124 "SAX function comment",
125 "SAX function warning",
126 "SAX function error",
127 "SAX function fatalError",
128 "SAX function getParameterEntity",
129 "SAX function cdataBlock",
130 "SAX function externalSubset",
145xmlGetFeaturesList(
int *
len,
const char **
result)
149 ret =
sizeof(xmlFeaturesList) /
sizeof(xmlFeaturesList[0]);
152 if ((*
len < 0) || (*
len >= 1000))
156 for (
i = 0;
i < *
len;
i++)
183 }
else if (!
strcmp(
name,
"fetch external entities")) {
185 }
else if (!
strcmp(
name,
"substitute entities")) {
187 }
else if (!
strcmp(
name,
"gather line info")) {
203 }
else if (!
strcmp(
name,
"SAX function internalSubset")) {
205 }
else if (!
strcmp(
name,
"SAX function isStandalone")) {
207 }
else if (!
strcmp(
name,
"SAX function hasInternalSubset")) {
209 ctxt->
sax->hasInternalSubset;
210 }
else if (!
strcmp(
name,
"SAX function hasExternalSubset")) {
212 ctxt->
sax->hasExternalSubset;
213 }
else if (!
strcmp(
name,
"SAX function resolveEntity")) {
215 }
else if (!
strcmp(
name,
"SAX function getEntity")) {
217 }
else if (!
strcmp(
name,
"SAX function entityDecl")) {
219 }
else if (!
strcmp(
name,
"SAX function notationDecl")) {
221 }
else if (!
strcmp(
name,
"SAX function attributeDecl")) {
223 }
else if (!
strcmp(
name,
"SAX function elementDecl")) {
225 }
else if (!
strcmp(
name,
"SAX function unparsedEntityDecl")) {
227 ctxt->
sax->unparsedEntityDecl;
228 }
else if (!
strcmp(
name,
"SAX function setDocumentLocator")) {
230 ctxt->
sax->setDocumentLocator;
231 }
else if (!
strcmp(
name,
"SAX function startDocument")) {
233 }
else if (!
strcmp(
name,
"SAX function endDocument")) {
235 }
else if (!
strcmp(
name,
"SAX function startElement")) {
237 }
else if (!
strcmp(
name,
"SAX function endElement")) {
239 }
else if (!
strcmp(
name,
"SAX function reference")) {
241 }
else if (!
strcmp(
name,
"SAX function characters")) {
243 }
else if (!
strcmp(
name,
"SAX function ignorableWhitespace")) {
245 ctxt->
sax->ignorableWhitespace;
246 }
else if (!
strcmp(
name,
"SAX function processingInstruction")) {
248 ctxt->
sax->processingInstruction;
249 }
else if (!
strcmp(
name,
"SAX function comment")) {
251 }
else if (!
strcmp(
name,
"SAX function warning")) {
253 }
else if (!
strcmp(
name,
"SAX function error")) {
255 }
else if (!
strcmp(
name,
"SAX function fatalError")) {
257 }
else if (!
strcmp(
name,
"SAX function getParameterEntity")) {
259 ctxt->
sax->getParameterEntity;
260 }
else if (!
strcmp(
name,
"SAX function cdataBlock")) {
262 }
else if (!
strcmp(
name,
"SAX function externalSubset")) {
287 int newvalidate = *((
int *)
value);
289 if ((!ctxt->
validate) && (newvalidate != 0)) {
294 ctxt->
vctxt.nodeMax = 0;
301 }
else if (!
strcmp(
name,
"fetch external entities")) {
303 }
else if (!
strcmp(
name,
"substitute entities")) {
305 }
else if (!
strcmp(
name,
"gather line info")) {
321 }
else if (!
strcmp(
name,
"SAX function internalSubset")) {
323 }
else if (!
strcmp(
name,
"SAX function isStandalone")) {
325 }
else if (!
strcmp(
name,
"SAX function hasInternalSubset")) {
326 ctxt->
sax->hasInternalSubset =
328 }
else if (!
strcmp(
name,
"SAX function hasExternalSubset")) {
329 ctxt->
sax->hasExternalSubset =
331 }
else if (!
strcmp(
name,
"SAX function resolveEntity")) {
333 }
else if (!
strcmp(
name,
"SAX function getEntity")) {
335 }
else if (!
strcmp(
name,
"SAX function entityDecl")) {
337 }
else if (!
strcmp(
name,
"SAX function notationDecl")) {
339 }
else if (!
strcmp(
name,
"SAX function attributeDecl")) {
341 }
else if (!
strcmp(
name,
"SAX function elementDecl")) {
343 }
else if (!
strcmp(
name,
"SAX function unparsedEntityDecl")) {
344 ctxt->
sax->unparsedEntityDecl =
346 }
else if (!
strcmp(
name,
"SAX function setDocumentLocator")) {
347 ctxt->
sax->setDocumentLocator =
349 }
else if (!
strcmp(
name,
"SAX function startDocument")) {
351 }
else if (!
strcmp(
name,
"SAX function endDocument")) {
353 }
else if (!
strcmp(
name,
"SAX function startElement")) {
355 }
else if (!
strcmp(
name,
"SAX function endElement")) {
357 }
else if (!
strcmp(
name,
"SAX function reference")) {
359 }
else if (!
strcmp(
name,
"SAX function characters")) {
361 }
else if (!
strcmp(
name,
"SAX function ignorableWhitespace")) {
362 ctxt->
sax->ignorableWhitespace =
364 }
else if (!
strcmp(
name,
"SAX function processingInstruction")) {
365 ctxt->
sax->processingInstruction =
367 }
else if (!
strcmp(
name,
"SAX function comment")) {
369 }
else if (!
strcmp(
name,
"SAX function warning")) {
371 }
else if (!
strcmp(
name,
"SAX function error")) {
373 }
else if (!
strcmp(
name,
"SAX function fatalError")) {
375 }
else if (!
strcmp(
name,
"SAX function getParameterEntity")) {
376 ctxt->
sax->getParameterEntity =
378 }
else if (!
strcmp(
name,
"SAX function cdataBlock")) {
380 }
else if (!
strcmp(
name,
"SAX function externalSubset")) {
416 static int deprecated = 0;
420 "xmlDecodeEntities() deprecated function reached\n");
446 static int deprecated = 0;
450 "xmlNamespaceParseNCName() deprecated function reached\n");
481 static int deprecated = 0;
485 "xmlNamespaceParseQName() deprecated function reached\n");
510 static int deprecated = 0;
514 "xmlNamespaceParseNSDef() deprecated function reached\n");
533 static int deprecated = 0;
537 "xmlParseQuotedString() deprecated function reached\n");
561 static int deprecated = 0;
565 "xmlParseNamespace() deprecated function reached\n");
593 static int deprecated = 0;
597 "xmlScanName() deprecated function reached\n");
633 static int deprecated = 0;
637 "xmlParserHandleReference() deprecated function reached\n");
659 static int deprecated = 0;
663 "xmlHandleEntity() deprecated function reached\n");
683 static int deprecated = 0;
687 "xmlNewGlobalNs() deprecated function reached\n");
703 static int deprecated = 0;
707 "xmlUpgradeOldNs() deprecated function reached\n");
733 "Deprecated API xmlEncodeEntities() used\n");
735 " change code to use xmlEncodeEntitiesReentrant()\n");
746static int deprecated_v1_msg = 0;
748#define DEPRECATED(n) \
749 if (deprecated_v1_msg == 0) \
750 xmlGenericError(xmlGenericErrorContext, \
751 "Use of deprecated SAXv1 function %s\n", n); \
764getPublicId(
void *
ctx)
781getSystemId(
void *
ctx)
797getLineNumber(
void *
ctx)
813getColumnNumber(
void *
ctx)
829isStandalone(
void *
ctx)
845hasInternalSubset(
void *
ctx)
861hasExternalSubset(
void *
ctx)
1086startDocument(
void *
ctx)
1101endDocument(
void *
ctx)
XMLPUBFUN void XMLCALL xmlSAX2Characters(void *ctx, const xmlChar *ch, int len)
XMLPUBFUN void XMLCALL xmlSAX2EndDocument(void *ctx)
XMLPUBFUN int XMLCALL xmlSAX2HasExternalSubset(void *ctx)
XMLPUBFUN int XMLCALL xmlSAX2GetColumnNumber(void *ctx)
XMLPUBFUN void XMLCALL xmlSAX2Comment(void *ctx, const xmlChar *value)
XMLPUBFUN void XMLCALL xmlSAX2EntityDecl(void *ctx, const xmlChar *name, int type, const xmlChar *publicId, const xmlChar *systemId, xmlChar *content)
XMLPUBFUN const xmlChar *XMLCALL xmlSAX2GetSystemId(void *ctx)
XMLPUBFUN void XMLCALL xmlSAX2UnparsedEntityDecl(void *ctx, const xmlChar *name, const xmlChar *publicId, const xmlChar *systemId, const xmlChar *notationName)
XMLPUBFUN xmlParserInputPtr XMLCALL xmlSAX2ResolveEntity(void *ctx, const xmlChar *publicId, const xmlChar *systemId)
XMLPUBFUN void XMLCALL xmlSAX2NotationDecl(void *ctx, const xmlChar *name, const xmlChar *publicId, const xmlChar *systemId)
XMLPUBFUN const xmlChar *XMLCALL xmlSAX2GetPublicId(void *ctx)
XMLPUBFUN void XMLCALL xmlSAX2ProcessingInstruction(void *ctx, const xmlChar *target, const xmlChar *data)
XMLPUBFUN void XMLCALL xmlSAX2AttributeDecl(void *ctx, const xmlChar *elem, const xmlChar *fullname, int type, int def, const xmlChar *defaultValue, xmlEnumerationPtr tree)
XMLPUBFUN void XMLCALL xmlSAX2InternalSubset(void *ctx, const xmlChar *name, const xmlChar *ExternalID, const xmlChar *SystemID)
XMLPUBFUN xmlEntityPtr XMLCALL xmlSAX2GetParameterEntity(void *ctx, const xmlChar *name)
XMLPUBFUN xmlEntityPtr XMLCALL xmlSAX2GetEntity(void *ctx, const xmlChar *name)
XMLPUBFUN void XMLCALL xmlSAX2StartDocument(void *ctx)
XMLPUBFUN void XMLCALL xmlSAX2ExternalSubset(void *ctx, const xmlChar *name, const xmlChar *ExternalID, const xmlChar *SystemID)
XMLPUBFUN int XMLCALL xmlSAX2IsStandalone(void *ctx)
XMLPUBFUN void XMLCALL xmlSAX2ElementDecl(void *ctx, const xmlChar *name, int type, xmlElementContentPtr content)
XMLPUBFUN void XMLCALL xmlSAX2Reference(void *ctx, const xmlChar *name)
XMLPUBFUN int XMLCALL xmlSAX2HasInternalSubset(void *ctx)
XMLPUBFUN void XMLCALL xmlSAX2CDataBlock(void *ctx, const xmlChar *value, int len)
XMLPUBFUN int XMLCALL xmlSAX2GetLineNumber(void *ctx)
int strcmp(const char *String1, const char *String2)
_In_ uint16_t _Out_ ULONG * atts
GLuint GLuint GLsizei GLenum type
GLint GLenum GLsizei GLsizei GLsizei GLint GLsizei const GLvoid * data
GLenum GLenum GLenum input
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
#define comment(fmt, arg1)
XMLPUBVAR void * xmlGenericErrorContext
XMLPUBVAR xmlGenericErrorFunc xmlGenericError
void(XMLCDECL *) typedef void(XMLCDECL *) typedef void(XMLCDECL * fatalErrorSAXFunc)(void *ctx, const char *msg,...) LIBXML_ATTR_FORMAT(2
void(* cdataBlockSAXFunc)(void *ctx, const xmlChar *value, int len)
void(* internalSubsetSAXFunc)(void *ctx, const xmlChar *name, const xmlChar *ExternalID, const xmlChar *SystemID)
void(XMLCDECL * warningSAXFunc)(void *ctx, const char *msg,...) LIBXML_ATTR_FORMAT(2
void(* startDocumentSAXFunc)(void *ctx)
void(* commentSAXFunc)(void *ctx, const xmlChar *value)
void(* unparsedEntityDeclSAXFunc)(void *ctx, const xmlChar *name, const xmlChar *publicId, const xmlChar *systemId, const xmlChar *notationName)
void(* elementDeclSAXFunc)(void *ctx, const xmlChar *name, int type, xmlElementContentPtr content)
xmlEntityPtr(* getParameterEntitySAXFunc)(void *ctx, const xmlChar *name)
void(* processingInstructionSAXFunc)(void *ctx, const xmlChar *target, const xmlChar *data)
xmlEntityPtr(* getEntitySAXFunc)(void *ctx, const xmlChar *name)
void(XMLCDECL *) typedef void(XMLCDECL * errorSAXFunc)(void *ctx, const char *msg,...) LIBXML_ATTR_FORMAT(2
xmlParserInputPtr(* resolveEntitySAXFunc)(void *ctx, const xmlChar *publicId, const xmlChar *systemId)
void(* charactersSAXFunc)(void *ctx, const xmlChar *ch, int len)
void(* entityDeclSAXFunc)(void *ctx, const xmlChar *name, int type, const xmlChar *publicId, const xmlChar *systemId, xmlChar *content)
int(* hasExternalSubsetSAXFunc)(void *ctx)
void(* setDocumentLocatorSAXFunc)(void *ctx, xmlSAXLocatorPtr loc)
void(* attributeDeclSAXFunc)(void *ctx, const xmlChar *elem, const xmlChar *fullname, int type, int def, const xmlChar *defaultValue, xmlEnumerationPtr tree)
int(* hasInternalSubsetSAXFunc)(void *ctx)
void(* ignorableWhitespaceSAXFunc)(void *ctx, const xmlChar *ch, int len)
void(* endElementSAXFunc)(void *ctx, const xmlChar *name)
void(* endDocumentSAXFunc)(void *ctx)
void(* startElementSAXFunc)(void *ctx, const xmlChar *name, const xmlChar **atts)
void(* notationDeclSAXFunc)(void *ctx, const xmlChar *name, const xmlChar *publicId, const xmlChar *systemId)
void(* referenceSAXFunc)(void *ctx, const xmlChar *name)
void(XMLCDECL *) typedef void(XMLCDECL *) typedef void(XMLCDECL *) typedef int(* isStandaloneSAXFunc)(void *ctx)
void(* externalSubsetSAXFunc)(void *ctx, const xmlChar *name, const xmlChar *ExternalID, const xmlChar *SystemID)
struct _xmlSAXHandler * sax
XMLPUBFUN void XMLCDECL XMLPUBFUN void XMLCDECL XMLPUBFUN void XMLCDECL XMLPUBFUN void XMLCDECL xmlParserValidityWarning(void *ctx, const char *msg,...) LIBXML_ATTR_FORMAT(2
XMLPUBFUN void XMLCDECL XMLPUBFUN void XMLCDECL XMLPUBFUN void XMLCDECL xmlParserValidityError(void *ctx, const char *msg,...) LIBXML_ATTR_FORMAT(2