33 # define SIZE_T_MAX ((size_t)-1) 50 xmlGenericError(xmlGenericErrorContext, \ 51 "Unimplemented block at %s:%d\n", \ 61 xmlStructuredErrorFunc schannel =
NULL;
62 const char *str1 =
"out of memory\n";
67 schannel = ctxt->sax->serror;
68 __xmlRaiseError(schannel,
69 ctxt->vctxt.error, ctxt->vctxt.userData,
73 msg, (
const char *) str1,
NULL);
78 __xmlRaiseError(schannel,
83 msg, (
const char *) str1,
NULL);
101 xmlStructuredErrorFunc schannel =
NULL;
103 if ((ctxt !=
NULL) && (ctxt->disableSAX != 0) &&
109 schannel = ctxt->sax->serror;
110 __xmlRaiseError(schannel,
111 ctxt->vctxt.error, ctxt->vctxt.userData,
114 (
const char *) str2,
NULL, 0, 0,
115 msg, (
const char *) str1, (
const char *) str2);
118 __xmlRaiseError(schannel,
122 (
const char *) str2,
NULL, 0, 0,
123 msg, (
const char *) str1, (
const char *) str2);
141 if ((ctxt !=
NULL) && (ctxt->disableSAX != 0) &&
148 (
const char *) str1, (
const char *) str2,
151 ctxt->wellFormed = 0;
153 if (ctxt->recovery == 0)
154 ctxt->disableSAX = 1;
172 if ((ctxt !=
NULL) && (ctxt->disableSAX != 0) &&
179 (
const char *) str1,
NULL,
197 if ((ctxt !=
NULL) && (ctxt->disableSAX != 0) &&
204 (
const char *) str1, (
const char *) str2,
221 if ((ctxt !=
NULL) && (ctxt->disableSAX != 0) &&
228 (
const char *) str1, (
const char *) str2,
362 "SAX.xmlSAX2InternalSubset(%s, %s, %s)\n",
363 name, ExternalID, SystemID);
379 xmlSAX2ErrMemory(ctxt,
"xmlSAX2InternalSubset");
399 "SAX.xmlSAX2ExternalSubset(%s, %s, %s)\n",
400 name, ExternalID, SystemID);
402 if (((ExternalID !=
NULL) || (SystemID !=
NULL)) &&
432 oldinput = ctxt->
input;
443 xmlSAX2ErrMemory(ctxt,
"xmlSAX2ExternalSubset");
444 ctxt->
input = oldinput;
490 ctxt->
input = oldinput;
536 "SAX.xmlSAX2ResolveEntity(%s, %s)\n", publicId, systemId);
540 (
const char *) publicId, ctxt);
564 "SAX.xmlSAX2GetEntity(%s)\n",
name);
584 "Entity(%s) document marked standalone but requires external subset\n",
607 ret->ExternalID, &children);
612 "Failure to process entity %s\n",
name,
NULL);
617 if (
ret->checked == 0) {
644 "SAX.xmlSAX2GetParameterEntity(%s)\n",
name);
673 "SAX.xmlSAX2EntityDecl(%s, %d, %s, %s, %s)\n",
681 "Entity(%s) already defined in the internal subset\n",
701 "Entity(%s) already defined in the external subset\n",
name);
716 "SAX.xmlSAX2EntityDecl(%s) called while not in subset\n",
747 "SAX.xmlSAX2AttributeDecl(%s, %s, %d, %d, %s, ...)\n",
755 int tmp = ctxt->
valid;
757 "xml:id : attribute type should be ID\n",
NULL,
NULL);
773 "SAX.xmlSAX2AttributeDecl(%s) called while not in subset\n",
778 #ifdef LIBXML_VALID_ENABLED 813 "SAX.xmlSAX2ElementDecl(%s, %d, ...)\n",
name,
type);
824 "SAX.xmlSAX2ElementDecl(%s) called while not in subset\n",
828 #ifdef LIBXML_VALID_ENABLED 859 "SAX.xmlSAX2NotationDecl(%s, %s, %s)\n",
name, publicId, systemId);
862 if ((publicId ==
NULL) && (systemId ==
NULL)) {
864 "SAX.xmlSAX2NotationDecl(%s) externalID or PublicID missing\n",
875 "SAX.xmlSAX2NotationDecl(%s) called while not in subset\n",
879 #ifdef LIBXML_VALID_ENABLED 908 "SAX.xmlSAX2UnparsedEntityDecl(%s, %s, %s, %s)\n",
909 name, publicId, systemId, notationName);
914 publicId, systemId, notationName);
918 "Entity(%s) already defined in the internal subset\n",
name);
934 publicId, systemId, notationName);
938 "Entity(%s) already defined in the external subset\n",
name);
953 "SAX.xmlSAX2UnparsedEntityDecl(%s) called while not in subset\n",
972 "SAX.xmlSAX2SetDocumentLocator()\n");
992 "SAX.xmlSAX2StartDocument()\n");
995 #ifdef LIBXML_HTML_ENABLED 999 xmlSAX2ErrMemory(ctxt,
"xmlSAX2StartDocument");
1006 "libxml2 built without HTML support\n");
1025 xmlSAX2ErrMemory(ctxt,
"xmlSAX2StartDocument");
1037 xmlSAX2ErrMemory(ctxt,
"xmlSAX2StartDocument");
1053 "SAX.xmlSAX2EndDocument()\n");
1056 #ifdef LIBXML_VALID_ENABLED 1082 #if defined(LIBXML_SAX1_ENABLED) || defined(LIBXML_HTML_ENABLED) || defined(LIBXML_WRITER_ENABLED) || defined(LIBXML_DOCB_ENABLED) || defined(LIBXML_LEGACY_ENABLED) 1118 "invalid namespace declaration '%s'\n",
1122 "Avoid attribute ending with ':' like '%s'\n",
1133 xmlSAX2ErrMemory(ctxt,
"xmlSAX2StartElement");
1139 #ifdef LIBXML_HTML_ENABLED 1147 #ifdef LIBXML_VALID_ENABLED 1154 nval = xmlValidCtxtNormalizeAttributeValue(&ctxt->
vctxt,
1171 (
name[0] ==
'x') && (
name[1] ==
'm') && (
name[2] ==
'l') &&
1172 (
name[3] ==
'n') && (
name[4] ==
's') && (
name[5] == 0)) {
1182 xmlSAX2ErrMemory(ctxt,
"xmlSAX2StartElement");
1200 "xmlns: %s not a valid URI\n",
val);
1205 "xmlns: URI %s is not absolute\n",
val);
1214 #ifdef LIBXML_VALID_ENABLED 1222 ctxt->
node, prefix, nsret,
val);
1232 if ((!ctxt->
html) &&
1233 (
ns !=
NULL) && (
ns[0] ==
'x') && (
ns[1] ==
'm') && (
ns[2] ==
'l') &&
1234 (
ns[3] ==
'n') && (
ns[4] ==
's') && (
ns[5] == 0)) {
1244 xmlSAX2ErrMemory(ctxt,
"xmlSAX2StartElement");
1258 "Empty namespace name for prefix %s\n",
name,
NULL);
1266 "xmlns:%s: %s not a valid URI\n",
name,
value);
1270 "xmlns:%s: URI %s is not absolute\n",
name,
value);
1279 #ifdef LIBXML_VALID_ENABLED 1301 if (
namespace ==
NULL) {
1303 "Namespace prefix %s of attribute %s is not defined\n",
1309 while (prop !=
NULL) {
1312 ((
namespace == prop->
ns) ||
1315 "Attribute %s in %s redefined\n",
1339 tmp =
ret->children;
1340 while (tmp !=
NULL) {
1348 ret->last =
ret->children;
1354 #ifdef LIBXML_VALID_ENABLED 1371 ctxt->
valid &= xmlValidateOneAttribute(&ctxt->
vctxt,
1381 nvalnorm = xmlValidNormalizeAttributeValue(ctxt->
myDoc,
1383 if (nvalnorm !=
NULL) {
1388 ctxt->
valid &= xmlValidateOneAttribute(&ctxt->
vctxt,
1411 if (xmlValidateNCName(
value, 1) != 0) {
1413 "xml:id : attribute value %s is not an NCName\n",
1444 if (elemDecl ==
NULL) {
1449 process_external_subset:
1451 if (elemDecl !=
NULL) {
1461 if ((
attr->defaultValue !=
NULL) &&
1477 if (fulln ==
NULL) {
1478 xmlSAX2ErrMemory(ctxt,
"xmlSAX2StartElement");
1490 while (att !=
NULL) {
1499 "standalone: attribute %s on %s defaulted from external subset\n",
1500 (
const char *)fulln,
1501 (
const char *)
attr->elem);
1538 if ((tst ==
attr) || (tst ==
NULL)) {
1543 if (fulln ==
NULL) {
1544 xmlSAX2ErrMemory(ctxt,
"xmlSAX2StartElement");
1556 while (att !=
NULL) {
1564 xmlSAX2AttributeInternal(ctxt, fulln,
1565 attr->defaultValue, prefix);
1574 if (
internal == 1) {
1578 goto process_external_subset;
1608 "SAX.xmlSAX2StartElement(%s)\n",
fullname);
1621 "Validation failed: no DTD found !",
NULL,
NULL);
1641 xmlSAX2ErrMemory(ctxt,
"xmlSAX2StartElement");
1645 #ifdef DEBUG_SAX_TREE 1665 #ifdef DEBUG_SAX_TREE 1681 #ifdef DEBUG_SAX_TREE 1683 "adding child %s to %s\n",
name,
parent->name);
1687 #ifdef DEBUG_SAX_TREE 1689 "adding sibling %s to ",
name);
1699 if ((!ctxt->
html) &&
1702 xmlCheckDefaultedAttributes(ctxt,
name, prefix,
atts);
1714 if ((att[0] ==
'x') && (att[1] ==
'm') && (att[2] ==
'l') &&
1715 (att[3] ==
'n') && (att[4] ==
's'))
1716 xmlSAX2AttributeInternal(ctxt, att,
value, prefix);
1734 "Namespace prefix %s is not defined\n",
1754 while (att !=
NULL) {
1755 xmlSAX2AttributeInternal(ctxt, att,
value,
NULL);
1761 if ((att[0] !=
'x') || (att[1] !=
'm') || (att[2] !=
'l') ||
1762 (att[3] !=
'n') || (att[4] !=
's'))
1763 xmlSAX2AttributeInternal(ctxt, att,
value,
NULL);
1774 #ifdef LIBXML_VALID_ENABLED 1782 chk = xmlValidateDtdFinal(&ctxt->
vctxt, ctxt->
myDoc);
1828 #ifdef LIBXML_VALID_ENABLED 1839 #ifdef DEBUG_SAX_TREE 1883 if ((
len < (
int) (2 *
sizeof(
void *))) &&
1890 }
else if ((
len <= 3) && ((
cur ==
'"') || (
cur ==
'\'') ||
1891 ((
cur ==
'<') && (
str[
len + 1] !=
'!')))) {
1897 for (
i = 1;
i <
len;
i++) {
1907 if (intern ==
NULL) {
1910 xmlSAX2ErrMemory(ctxt,
"xmlSAX2TextNode");
1934 #ifdef LIBXML_VALID_ENABLED 1999 if (ctxt->freeAttrs !=
NULL) {
2000 ret = ctxt->freeAttrs;
2001 ctxt->freeAttrs =
ret->next;
2002 ctxt->freeAttrsNr--;
2006 ret->parent = ctxt->node;
2007 ret->doc = ctxt->myDoc;
2008 ret->ns =
namespace;
2010 if (ctxt->dictNames)
2011 ret->name = localname;
2016 if (ctxt->node->properties ==
NULL) {
2017 ctxt->node->properties =
ret;
2029 if (ctxt->dictNames)
2040 if ((ctxt->replaceEntities == 0) && (!ctxt->html)) {
2048 if (*valueend != 0) {
2050 ret->children = tmp;
2059 tmp =
ret->children;
2060 while (tmp !=
NULL) {
2072 ret->children = tmp;
2080 #ifdef LIBXML_VALID_ENABLED 2081 if ((!ctxt->html) && ctxt->validate && ctxt->wellFormed &&
2082 ctxt->myDoc && ctxt->myDoc->intSubset) {
2087 if (!ctxt->replaceEntities) {
2088 dup = xmlSAX2DecodeAttrEntities(ctxt,
value, valueend);
2090 if (*valueend == 0) {
2091 ctxt->valid &= xmlValidateOneAttribute(&ctxt->vctxt,
2092 ctxt->myDoc, ctxt->node,
ret,
value);
2101 ctxt->valid &= xmlValidateOneAttribute(&ctxt->vctxt,
2102 ctxt->myDoc, ctxt->node,
ret,
dup);
2112 if (ctxt->attsSpecial !=
NULL) {
2119 ctxt->vctxt.valid = 1;
2120 nvalnorm = xmlValidCtxtNormalizeAttributeValue(
2121 &ctxt->vctxt, ctxt->myDoc,
2123 if (ctxt->vctxt.valid != 1)
2128 if (nvalnorm !=
NULL) {
2135 ctxt->valid &= xmlValidateOneAttribute(&ctxt->vctxt,
2136 ctxt->myDoc, ctxt->node,
ret,
dup);
2145 ctxt->valid &= xmlValidateOneAttribute(&ctxt->vctxt,
2146 ctxt->myDoc, ctxt->node,
ret,
dup);
2151 (((ctxt->replaceEntities == 0) && (ctxt->external != 2)) ||
2152 ((ctxt->replaceEntities != 0) && (ctxt->inSubset == 0)))) {
2157 if ((prefix == ctxt->str_xml) &&
2158 (localname[0] ==
'i') && (localname[1] ==
'd') &&
2159 (localname[2] == 0)) {
2167 #if defined(LIBXML_SAX1_ENABLED) || defined(LIBXML_HTML_ENABLED) || defined(LIBXML_WRITER_ENABLED) || defined(LIBXML_DOCB_ENABLED) || defined(LIBXML_LEGACY_ENABLED) 2168 #ifdef LIBXML_VALID_ENABLED 2169 if (xmlValidateNCName(
dup, 1) != 0) {
2171 "xml:id : attribute value %s is not an NCName\n",
2177 }
else if (
xmlIsID(ctxt->myDoc, ctxt->node,
ret)) {
2182 }
else if (
xmlIsRef(ctxt->myDoc, ctxt->node,
ret)) {
2240 "Validation failed: no DTD found !",
NULL,
NULL);
2247 if ((prefix !=
NULL) && (URI ==
NULL)) {
2270 ret->name = localname;
2277 xmlSAX2ErrMemory(ctxt,
"xmlSAX2StartElementNs");
2287 else if (lname ==
NULL)
2293 xmlSAX2ErrMemory(ctxt,
"xmlSAX2StartElementNs");
2312 for (
i = 0,
j = 0;
j < nb_namespaces;
j++) {
2313 pref = namespaces[
i++];
2314 uri = namespaces[
i++];
2323 if ((URI !=
NULL) && (prefix == pref))
2333 #ifdef LIBXML_VALID_ENABLED 2366 if ((nb_defaulted != 0) &&
2368 nb_attributes -= nb_defaulted;
2383 xmlSAX2ErrMemory(ctxt,
"xmlSAX2StartElementNs");
2388 "Namespace prefix %s was not found\n",
2392 "Namespace default prefix was not found\n",
2400 if (nb_attributes > 0) {
2401 for (
j = 0,
i = 0;
i < nb_attributes;
i++,
j+=5) {
2405 if ((attributes[
j+1] !=
NULL) && (attributes[
j+2] ==
NULL)) {
2413 attributes[
j+3], attributes[
j+4]);
2419 if (lname !=
NULL) {
2421 attributes[
j+3], attributes[
j+4]);
2428 attributes[
j+3], attributes[
j+4]);
2432 #ifdef LIBXML_VALID_ENABLED 2440 chk = xmlValidateDtdFinal(&ctxt->
vctxt, ctxt->
myDoc);
2482 #ifdef LIBXML_VALID_ENABLED 2510 "SAX.xmlSAX2Reference(%s)\n",
name);
2516 #ifdef DEBUG_SAX_TREE 2518 "add xmlSAX2Reference %s to %s \n",
name, ctxt->
node->
name);
2542 "SAX.xmlSAX2Characters(%.30s, %d)\n", ch,
len);
2551 #ifdef DEBUG_SAX_TREE 2553 "add chars: ctxt->node == NULL !\n");
2558 #ifdef DEBUG_SAX_TREE 2560 "add chars to %s \n", ctxt->
node->
name);
2567 if (lastChild ==
NULL) {
2569 if (lastChild !=
NULL) {
2577 xmlSAX2ErrMemory(ctxt,
"xmlSAX2Characters");
2581 int coalesceText = (lastChild !=
NULL) &&
2584 if ((coalesceText) && (ctxt->
nodemem != 0)) {
2600 xmlSAX2ErrMemory(ctxt,
"xmlSAX2Characters: xmlStrdup returned NULL");
2605 xmlSAX2ErrMemory(ctxt,
"xmlSAX2Characters: huge text node");
2610 xmlSAX2ErrMemory(ctxt,
"xmlSAX2Characters overflow prevented");
2620 if (newbuf ==
NULL) {
2621 xmlSAX2ErrMemory(ctxt,
"xmlSAX2Characters");
2630 }
else if (coalesceText) {
2632 xmlSAX2ErrMemory(ctxt,
"xmlSAX2Characters");
2641 if (lastChild !=
NULL) {
2667 "SAX.xmlSAX2IgnorableWhitespace(%.30s, %d)\n", ch,
len);
2691 "SAX.xmlSAX2ProcessingInstruction(%s, %s)\n",
target,
data);
2713 #ifdef DEBUG_SAX_TREE 2715 "Setting PI %s as root\n",
target);
2721 #ifdef DEBUG_SAX_TREE 2727 #ifdef DEBUG_SAX_TREE 2729 "adding PI %s sibling to ",
target);
2774 #ifdef DEBUG_SAX_TREE 2776 "Setting xmlSAX2Comment as root\n");
2782 #ifdef DEBUG_SAX_TREE 2784 "adding xmlSAX2Comment child to %s\n",
parent->name);
2788 #ifdef DEBUG_SAX_TREE 2790 "adding xmlSAX2Comment sibling to ");
2814 "SAX.pcdata(%.10s, %d)\n",
value,
len);
2817 #ifdef DEBUG_SAX_TREE 2819 "add chars to %s \n", ctxt->
node->
name);
2821 if ((lastChild !=
NULL) &&
2833 #ifdef LIBXML_SAX1_ENABLED 2847 xmlSAXDefaultVersion(
int version)
2870 if (hdlr ==
NULL)
return(-1);
2878 #ifdef LIBXML_SAX1_ENABLED 2943 #ifdef LIBXML_SAX1_ENABLED 2948 #ifdef LIBXML_HTML_ENABLED 2999 htmlDefaultSAXHandlerInit(
void)
3001 xmlSAX2InitHtmlDefaultSAXHandler((
xmlSAXHandlerPtr) &htmlDefaultSAXHandler);
3006 #ifdef LIBXML_DOCB_ENABLED 3057 docbDefaultSAXHandlerInit(
void)
3059 xmlSAX2InitDocbDefaultSAXHandler((
xmlSAXHandlerPtr) &docbDefaultSAXHandler);
int xmlSAX2GetColumnNumber(void *ctx)
internalSubsetSAXFunc internalSubset
XMLPUBFUN xmlChar *XMLCALL xmlPathToURI(const xmlChar *path)
const xmlChar * xmlSAX2GetSystemId(void *ctx)
processingInstructionSAXFunc processingInstruction
XMLPUBFUN int XMLCALL xmlParseCtxtExternalEntity(xmlParserCtxtPtr ctx, const xmlChar *URL, const xmlChar *ID, xmlNodePtr *lst)
XMLPUBFUN int XMLCALL xmlDictReference(xmlDictPtr dict)
xmlParserInputState instate
XMLPUBFUN xmlDtdPtr XMLCALL xmlNewDtd(xmlDocPtr doc, const xmlChar *name, const xmlChar *ExternalID, const xmlChar *SystemID)
XMLPUBFUN xmlNotationPtr XMLCALL xmlAddNotationDecl(xmlValidCtxtPtr ctxt, xmlDtdPtr dtd, const xmlChar *name, const xmlChar *PublicID, const xmlChar *SystemID)
endElementNsSAX2Func endElementNs
xmlParserInputPtr * inputTab
XMLPUBFUN xmlChar *XMLCALL xmlBuildQName(const xmlChar *ncname, const xmlChar *prefix, xmlChar *memory, int len)
struct _xmlDtd * intSubset
static GLenum _GLUfuncptr fn
XMLPUBFUN int XMLCALL xmlPushInput(xmlParserCtxtPtr ctxt, xmlParserInputPtr input)
XMLPUBFUN xmlChar *XMLCALL xmlStrndup(const xmlChar *cur, int len)
static void xmlSAX2AttributeNs(xmlParserCtxtPtr ctxt, const xmlChar *localname, const xmlChar *prefix, const xmlChar *value, const xmlChar *valueend)
xmlEntityPtr xmlSAX2GetEntity(void *ctx, const xmlChar *name)
int xmlSAX2GetLineNumber(void *ctx)
XMLPUBFUN xmlNodePtr XMLCALL xmlNewCDataBlock(xmlDocPtr doc, const xmlChar *content, int len)
XMLPUBFUN int XMLCALL xmlStrlen(const xmlChar *str)
void xmlSAX2InitDefaultSAXHandler(xmlSAXHandler *hdlr, int warning)
xmlParserInputPtr xmlSAX2ResolveEntity(void *ctx, const xmlChar *publicId, const xmlChar *systemId)
void xmlSAX2EndElementNs(void *ctx, const xmlChar *localname ATTRIBUTE_UNUSED, const xmlChar *prefix ATTRIBUTE_UNUSED, const xmlChar *URI ATTRIBUTE_UNUSED)
endDocumentSAXFunc endDocument
XMLPUBFUN xmlNodePtr XMLCALL xmlAddSibling(xmlNodePtr cur, xmlNodePtr elem)
XMLPUBVAR xmlRegisterNodeFunc xmlRegisterNodeDefaultValue
XMLPUBFUN xmlAttrPtr XMLCALL xmlNewNsPropEatName(xmlNodePtr node, xmlNsPtr ns, xmlChar *name, const xmlChar *value)
setDocumentLocatorSAXFunc setDocumentLocator
entityDeclSAXFunc entityDecl
XMLPUBFUN int XMLCALL xmlIsRef(xmlDocPtr doc, xmlNodePtr elem, xmlAttrPtr attr)
void xmlSAX2NotationDecl(void *ctx, const xmlChar *name, const xmlChar *publicId, const xmlChar *systemId)
void xmlSAX2SetDocumentLocator(void *ctx ATTRIBUTE_UNUSED, xmlSAXLocatorPtr loc ATTRIBUTE_UNUSED)
XMLPUBFUN xmlNodePtr XMLCALL xmlNewDocNodeEatName(xmlDocPtr doc, xmlNsPtr ns, xmlChar *name, const xmlChar *content)
XMLPUBFUN xmlURIPtr XMLCALL xmlParseURI(const char *str)
#define XML_MAX_TEXT_LENGTH
void xmlSAX2CDataBlock(void *ctx, const xmlChar *value, int len)
XMLPUBFUN xmlChar *XMLCALL xmlStringLenDecodeEntities(xmlParserCtxtPtr ctxt, const xmlChar *str, int len, int what, xmlChar end, xmlChar end2, xmlChar end3)
int xmlSAX2IsStandalone(void *ctx)
int xmlSAXVersion(xmlSAXHandler *hdlr, int version)
XMLPUBFUN const xmlChar *XMLCALL xmlStrchr(const xmlChar *str, xmlChar val)
resolveEntitySAXFunc resolveEntity
static int xmlSAX2DefaultVersionValue
static void LIBXML_ATTR_FORMAT(2, 0)
unsigned short(__cdecl typeof(TIFFCurrentDirectory))(struct tiff *)
isStandaloneSAXFunc isStandalone
static xmlNodePtr xmlSAX2TextNode(xmlParserCtxtPtr ctxt, const xmlChar *str, int len)
void xmlSAX2AttributeDecl(void *ctx, const xmlChar *elem, const xmlChar *fullname, int type, int def, const xmlChar *defaultValue, xmlEnumerationPtr tree)
void xmlSAX2ElementDecl(void *ctx, const xmlChar *name, int type, xmlElementContentPtr content)
startElementSAXFunc startElement
XMLPUBFUN xmlEntityPtr XMLCALL xmlGetParameterEntity(xmlDocPtr doc, const xmlChar *name)
void xmlSAX2Comment(void *ctx, const xmlChar *value)
XMLPUBFUN xmlChar *XMLCALL xmlStrcat(xmlChar *cur, const xmlChar *add)
XMLPUBFUN xmlNodePtr XMLCALL xmlNewDocText(const xmlDoc *doc, const xmlChar *content)
XMLPUBFUN xmlNsPtr XMLCALL xmlSearchNs(xmlDocPtr doc, xmlNodePtr node, const xmlChar *nameSpace)
attributeDeclSAXFunc attributeDecl
XMLPUBVAR const xmlChar xmlStringText[]
int __xmlRegisterCallbacks
XMLPUBFUN xmlChar *XMLCALL xmlSplitQName(xmlParserCtxtPtr ctxt, const xmlChar *name, xmlChar **prefix)
XMLPUBVAR xmlGenericErrorFunc xmlGenericError
XMLPUBFUN xmlChar *XMLCALL xmlBuildURI(const xmlChar *URI, const xmlChar *base)
XMLPUBFUN xmlChar *XMLCALL xmlCanonicPath(const xmlChar *path)
static const WCHAR version[]
void xmlSAX2ExternalSubset(void *ctx, const xmlChar *name, const xmlChar *ExternalID, const xmlChar *SystemID)
XMLPUBFUN void XMLCALL xmlFreeDtd(xmlDtdPtr cur)
cdataBlockSAXFunc cdataBlock
endElementSAXFunc endElement
XMLPUBFUN void XMLCALL xmlFreeInputStream(xmlParserInputPtr input)
XMLPUBFUN xmlChar XMLCALL xmlPopInput(xmlParserCtxtPtr ctxt)
XMLPUBVAR xmlReallocFunc xmlRealloc
void xmlSAX2Reference(void *ctx, const xmlChar *name)
ignorableWhitespaceSAXFunc ignorableWhitespace
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 GLint GLint j
XMLPUBFUN xmlNodePtr XMLCALL xmlGetLastChild(const xmlNode *parent)
XMLPUBFUN xmlRefPtr XMLCALL xmlAddRef(xmlValidCtxtPtr ctxt, xmlDocPtr doc, const xmlChar *value, xmlAttrPtr attr)
void xmlSAX2IgnorableWhitespace(void *ctx ATTRIBUTE_UNUSED, const xmlChar *ch ATTRIBUTE_UNUSED, int len ATTRIBUTE_UNUSED)
void xmlSAX2InternalSubset(void *ctx, const xmlChar *name, const xmlChar *ExternalID, const xmlChar *SystemID)
XMLPUBFUN xmlChar *XMLCALL xmlStringDecodeEntities(xmlParserCtxtPtr ctxt, const xmlChar *str, int what, xmlChar end, xmlChar end2, xmlChar end3)
XMLPUBFUN void XMLCALL xmlParseExternalSubset(xmlParserCtxtPtr ctxt, const xmlChar *ExternalID, const xmlChar *SystemID)
XMLPUBFUN xmlEntityPtr XMLCALL xmlAddDtdEntity(xmlDocPtr doc, const xmlChar *name, int type, const xmlChar *ExternalID, const xmlChar *SystemID, const xmlChar *content)
XMLPUBFUN xmlNodePtr XMLCALL xmlAddChild(xmlNodePtr parent, xmlNodePtr cur)
xmlAttributePtr attributes
void xmlErrMemory(xmlParserCtxtPtr ctxt, const char *extra)
hasInternalSubsetSAXFunc hasInternalSubset
XMLPUBFUN void XMLCDECL xmlParserError(void *ctx, const char *msg,...) LIBXML_ATTR_FORMAT(2
XMLPUBFUN xmlNodePtr XMLCALL xmlNewDocPI(xmlDocPtr doc, const xmlChar *name, const xmlChar *content)
XMLPUBFUN void XMLCALL xmlUnlinkNode(xmlNodePtr cur)
XMLPUBFUN xmlEntityPtr XMLCALL xmlGetPredefinedEntity(const xmlChar *name)
XMLPUBVAR xmlSAXHandlerV1 xmlDefaultSAXHandler
unparsedEntityDeclSAXFunc unparsedEntityDecl
void xmlSAX2Characters(void *ctx, const xmlChar *ch, int len)
const xmlChar * xmlSAX2GetPublicId(void *ctx ATTRIBUTE_UNUSED)
XMLPUBVAR xmlFreeFunc xmlFree
void xmlSAX2EntityDecl(void *ctx, const xmlChar *name, int type, const xmlChar *publicId, const xmlChar *systemId, xmlChar *content)
XMLPUBFUN const xmlChar *XMLCALL xmlDictLookup(xmlDictPtr dict, const xmlChar *name, int len)
XMLPUBFUN xmlCharEncoding XMLCALL xmlDetectCharEncoding(const unsigned char *in, int len)
XMLPUBFUN xmlNodePtr XMLCALL xmlStringGetNodeList(const xmlDoc *doc, const xmlChar *value)
GLint GLenum GLsizei GLsizei GLsizei GLint GLsizei const GLvoid * data
XMLPUBFUN xmlAttributePtr XMLCALL xmlGetDtdQAttrDesc(xmlDtdPtr dtd, const xmlChar *elem, const xmlChar *name, const xmlChar *prefix)
void xmlSAX2ProcessingInstruction(void *ctx, const xmlChar *target, const xmlChar *data)
XMLPUBFUN int XMLCALL nodePush(xmlParserCtxtPtr ctxt, xmlNodePtr value)
XMLPUBFUN xmlEntityPtr XMLCALL xmlGetDocEntity(const xmlDoc *doc, const xmlChar *name)
void xmlSAX2EndDocument(void *ctx)
const struct _xmlNode * node
void xmlSAX2StartElementNs(void *ctx, const xmlChar *localname, const xmlChar *prefix, const xmlChar *URI, int nb_namespaces, const xmlChar **namespaces, int nb_attributes, int nb_defaulted, const xmlChar **attributes)
void xmlSAX2StartDocument(void *ctx)
XMLPUBFUN int XMLCALL xmlIsID(xmlDocPtr doc, xmlNodePtr elem, xmlAttrPtr attr)
xmlEntityPtr xmlSAX2GetParameterEntity(void *ctx, const xmlChar *name)
XMLPUBFUN xmlAttrPtr XMLCALL xmlNewNsProp(xmlNodePtr node, xmlNsPtr ns, const xmlChar *name, const xmlChar *value)
XMLPUBFUN xmlElementPtr XMLCALL xmlGetDtdQElementDesc(xmlDtdPtr dtd, const xmlChar *name, const xmlChar *prefix)
XMLPUBFUN void XMLCALL xmlParserAddNodeInfo(xmlParserCtxtPtr ctxt, const xmlParserNodeInfoPtr info)
xmlStructuredErrorFunc serror
#define memcpy(s1, s2, n)
XMLPUBFUN xmlNodePtr XMLCALL xmlStringLenGetNodeList(const xmlDoc *doc, const xmlChar *value, int len)
struct _xmlSAXHandler * sax
GLsizei const GLfloat * value
XMLPUBFUN xmlIDPtr XMLCALL xmlAddID(xmlValidCtxtPtr ctxt, xmlDocPtr doc, const xmlChar *value, xmlAttrPtr attr)
XMLPUBFUN xmlAttributePtr XMLCALL xmlAddAttributeDecl(xmlValidCtxtPtr ctxt, xmlDtdPtr dtd, const xmlChar *elem, const xmlChar *name, const xmlChar *ns, xmlAttributeType type, xmlAttributeDefault def, const xmlChar *defaultValue, xmlEnumerationPtr tree)
XMLPUBFUN const xmlChar *XMLCALL xmlDictQLookup(xmlDictPtr dict, const xmlChar *prefix, const xmlChar *name)
XMLPUBFUN xmlParserInputPtr XMLCALL xmlLoadExternalEntity(const char *URL, const char *ID, xmlParserCtxtPtr ctxt)
struct _xmlAttr * properties
XMLPUBFUN xmlNsPtr XMLCALL xmlNewNs(xmlNodePtr node, const xmlChar *href, const xmlChar *prefix)
fatalErrorSAXFunc fatalError
XMLPUBFUN xmlElementPtr XMLCALL xmlAddElementDecl(xmlValidCtxtPtr ctxt, xmlDtdPtr dtd, const xmlChar *name, xmlElementTypeVal type, xmlElementContentPtr content)
XMLPUBFUN xmlNodePtr XMLCALL xmlNewDocComment(xmlDocPtr doc, const xmlChar *content)
getEntitySAXFunc getEntity
static BYTE decode(char c)
XMLPUBFUN xmlNodePtr XMLCALL xmlNewCharRef(xmlDocPtr doc, const xmlChar *name)
notationDeclSAXFunc notationDecl
GLenum GLenum GLenum input
elementDeclSAXFunc elementDecl
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
XMLPUBFUN void XMLCDECL XMLPUBFUN void XMLCDECL xmlParserWarning(void *ctx, const char *msg,...) LIBXML_ATTR_FORMAT(2
externalSubsetSAXFunc externalSubset
#define XML_COMPLETE_ATTRS
XMLPUBFUN xmlEntityPtr XMLCALL xmlAddDocEntity(xmlDocPtr doc, const xmlChar *name, int type, const xmlChar *ExternalID, const xmlChar *SystemID, const xmlChar *content)
XMLPUBFUN int XMLCALL xmlDictOwns(xmlDictPtr dict, const xmlChar *str)
XMLPUBFUN xmlDtdPtr XMLCALL xmlCreateIntSubset(xmlDocPtr doc, const xmlChar *name, const xmlChar *ExternalID, const xmlChar *SystemID)
XMLPUBFUN int XMLCALL xmlSwitchEncoding(xmlParserCtxtPtr ctxt, xmlCharEncoding enc)
XMLPUBFUN xmlNodePtr XMLCALL xmlNewDocNode(xmlDocPtr doc, xmlNsPtr ns, const xmlChar *name, const xmlChar *content)
XMLPUBFUN void XMLCALL xmlFreeURI(xmlURIPtr uri)
__kernel_ptrdiff_t ptrdiff_t
XMLPUBVAR xmlMallocFunc xmlMalloc
xmlParserCtxt * xmlParserCtxtPtr
startDocumentSAXFunc startDocument
#define XML_SUBSTITUTE_REF
XMLPUBFUN xmlDtdPtr XMLCALL xmlGetIntSubset(const xmlDoc *doc)
XMLPUBFUN int XMLCALL xmlTextConcat(xmlNodePtr node, const xmlChar *content, int len)
XMLPUBFUN void XMLCALL xmlFreeNode(xmlNodePtr cur)
getParameterEntitySAXFunc getParameterEntity
struct _xmlDtd * extSubset
struct _xmlNode * children
_Check_return_ _CRTIMP int __cdecl dup(_In_ int _FileHandle)
XMLPUBFUN void XMLCALL xmlSetNs(xmlNodePtr node, xmlNsPtr ns)
charactersSAXFunc characters
xmlParserNodeInfo * nodeInfo
XMLPUBFUN xmlNodePtr XMLCALL xmlAddChildList(xmlNodePtr parent, xmlNodePtr cur)
int xmlSAX2HasInternalSubset(void *ctx)
int xmlSAX2HasExternalSubset(void *ctx)
struct _xmlNode * children
hasExternalSubsetSAXFunc hasExternalSubset
GLuint GLuint GLsizei GLenum type
XMLPUBFUN int XMLCALL xmlStrEqual(const xmlChar *str1, const xmlChar *str2)
XMLPUBFUN xmlNodePtr XMLCALL nodePop(xmlParserCtxtPtr ctxt)
void xmlSAX2UnparsedEntityDecl(void *ctx, const xmlChar *name, const xmlChar *publicId, const xmlChar *systemId, const xmlChar *notationName)
referenceSAXFunc reference
XMLPUBFUN xmlDocPtr XMLCALL xmlNewDoc(const xmlChar *version)
XMLPUBFUN void XMLCALL xmlFreeEnumeration(xmlEnumerationPtr cur)
XMLPUBFUN xmlChar *XMLCALL xmlStrdup(const xmlChar *cur)
startElementNsSAX2Func startElementNs
void xmlDefaultSAXHandlerInit(void)
_In_ uint16_t _Out_ ULONG * atts
XMLPUBFUN xmlNodePtr XMLCALL xmlNewReference(const xmlDoc *doc, const xmlChar *name)
XMLPUBVAR void * xmlGenericErrorContext
GLuint const GLchar * name