Lines Matching refs:sax
308 xmlSAXHandlerPtr sax,
631 if ((ctxt != NULL) && (ctxt->sax != NULL) && in xmlWarningMsg()
632 (ctxt->sax->initialized == XML_SAX2_MAGIC)) in xmlWarningMsg()
633 schannel = ctxt->sax->serror; in xmlWarningMsg()
636 (ctxt->sax) ? ctxt->sax->warning : NULL, in xmlWarningMsg()
671 if ((ctxt->sax != NULL) && (ctxt->sax->initialized == XML_SAX2_MAGIC)) in xmlValidityError()
672 schannel = ctxt->sax->serror; in xmlValidityError()
1098 if ((ctxt->sax) && (ctxt->sax->initialized == XML_SAX2_MAGIC) && in xmlDetectSAX2()
1099 ((ctxt->sax->startElementNs != NULL) || in xmlDetectSAX2()
1100 (ctxt->sax->endElementNs != NULL))) ctxt->sax2 = 1; in xmlDetectSAX2()
2843 if (ctxt->sax->ignorableWhitespace == ctxt->sax->characters) in areBlanks()
4415 if ((ctxt->sax != NULL) && in xmlParseCharData()
4416 (ctxt->sax->ignorableWhitespace != in xmlParseCharData()
4417 ctxt->sax->characters)) { in xmlParseCharData()
4419 if (ctxt->sax->ignorableWhitespace != NULL) in xmlParseCharData()
4420 ctxt->sax->ignorableWhitespace(ctxt->userData, in xmlParseCharData()
4423 if (ctxt->sax->characters != NULL) in xmlParseCharData()
4424 ctxt->sax->characters(ctxt->userData, in xmlParseCharData()
4429 } else if ((ctxt->sax != NULL) && in xmlParseCharData()
4430 (ctxt->sax->characters != NULL)) { in xmlParseCharData()
4431 ctxt->sax->characters(ctxt->userData, in xmlParseCharData()
4464 if ((ctxt->sax != NULL) && in xmlParseCharData()
4465 (ctxt->sax->ignorableWhitespace != in xmlParseCharData()
4466 ctxt->sax->characters) && in xmlParseCharData()
4472 if (ctxt->sax->ignorableWhitespace != NULL) in xmlParseCharData()
4473 ctxt->sax->ignorableWhitespace(ctxt->userData, in xmlParseCharData()
4476 if (ctxt->sax->characters != NULL) in xmlParseCharData()
4477 ctxt->sax->characters(ctxt->userData, in xmlParseCharData()
4484 } else if (ctxt->sax != NULL) { in xmlParseCharData()
4485 if (ctxt->sax->characters != NULL) in xmlParseCharData()
4486 ctxt->sax->characters(ctxt->userData, in xmlParseCharData()
4561 if ((ctxt->sax != NULL) && (!ctxt->disableSAX)) { in xmlParseCharDataComplex()
4563 if (ctxt->sax->ignorableWhitespace != NULL) in xmlParseCharDataComplex()
4564 ctxt->sax->ignorableWhitespace(ctxt->userData, in xmlParseCharDataComplex()
4567 if (ctxt->sax->characters != NULL) in xmlParseCharDataComplex()
4568 ctxt->sax->characters(ctxt->userData, buf, nbchar); in xmlParseCharDataComplex()
4569 if ((ctxt->sax->characters != in xmlParseCharDataComplex()
4570 ctxt->sax->ignorableWhitespace) && in xmlParseCharDataComplex()
4595 if ((ctxt->sax != NULL) && (!ctxt->disableSAX)) { in xmlParseCharDataComplex()
4597 if (ctxt->sax->ignorableWhitespace != NULL) in xmlParseCharDataComplex()
4598 ctxt->sax->ignorableWhitespace(ctxt->userData, buf, nbchar); in xmlParseCharDataComplex()
4600 if (ctxt->sax->characters != NULL) in xmlParseCharDataComplex()
4601 ctxt->sax->characters(ctxt->userData, buf, nbchar); in xmlParseCharDataComplex()
4602 if ((ctxt->sax->characters != ctxt->sax->ignorableWhitespace) && in xmlParseCharDataComplex()
4817 if ((ctxt->sax != NULL) && (ctxt->sax->comment != NULL) && in xmlParseCommentComplex()
4819 ctxt->sax->comment(ctxt->userData, buf); in xmlParseCommentComplex()
4896 if ((ctxt->sax != NULL) && in xmlParseComment()
4897 (ctxt->sax->comment != NULL)) { in xmlParseComment()
4966 if ((ctxt->sax != NULL) && (ctxt->sax->comment != NULL) && in xmlParseComment()
4969 ctxt->sax->comment(ctxt->userData, buf); in xmlParseComment()
4971 ctxt->sax->comment(ctxt->userData, BAD_CAST ""); in xmlParseComment()
5157 if ((ctxt->sax) && (!ctxt->disableSAX) && in xmlParsePI()
5158 (ctxt->sax->processingInstruction != NULL)) in xmlParsePI()
5159 ctxt->sax->processingInstruction(ctxt->userData, in xmlParsePI()
5252 if ((ctxt->sax) && (!ctxt->disableSAX) && in xmlParsePI()
5253 (ctxt->sax->processingInstruction != NULL)) in xmlParsePI()
5254 ctxt->sax->processingInstruction(ctxt->userData, in xmlParsePI()
5327 if ((ctxt->sax != NULL) && (!ctxt->disableSAX) && in xmlParseNotationDecl()
5328 (ctxt->sax->notationDecl != NULL)) in xmlParseNotationDecl()
5329 ctxt->sax->notationDecl(ctxt->userData, name, Pubid, Systemid); in xmlParseNotationDecl()
5412 if ((ctxt->sax != NULL) && in xmlParseEntityDecl()
5413 (!ctxt->disableSAX) && (ctxt->sax->entityDecl != NULL)) in xmlParseEntityDecl()
5414 ctxt->sax->entityDecl(ctxt->userData, name, in xmlParseEntityDecl()
5443 if ((ctxt->sax != NULL) && in xmlParseEntityDecl()
5445 (ctxt->sax->entityDecl != NULL)) in xmlParseEntityDecl()
5446 ctxt->sax->entityDecl(ctxt->userData, name, in xmlParseEntityDecl()
5457 if ((ctxt->sax != NULL) && in xmlParseEntityDecl()
5458 (!ctxt->disableSAX) && (ctxt->sax->entityDecl != NULL)) in xmlParseEntityDecl()
5459 ctxt->sax->entityDecl(ctxt->userData, name, in xmlParseEntityDecl()
5521 if ((ctxt->sax != NULL) && (!ctxt->disableSAX) && in xmlParseEntityDecl()
5522 (ctxt->sax->unparsedEntityDecl != NULL)) in xmlParseEntityDecl()
5523 ctxt->sax->unparsedEntityDecl(ctxt->userData, name, in xmlParseEntityDecl()
5526 if ((ctxt->sax != NULL) && in xmlParseEntityDecl()
5527 (!ctxt->disableSAX) && (ctxt->sax->entityDecl != NULL)) in xmlParseEntityDecl()
5528 ctxt->sax->entityDecl(ctxt->userData, name, in xmlParseEntityDecl()
5579 if ((ctxt->sax != NULL) && in xmlParseEntityDecl()
5580 (ctxt->sax->getParameterEntity != NULL)) in xmlParseEntityDecl()
5581 cur = ctxt->sax->getParameterEntity(ctxt->userData, name); in xmlParseEntityDecl()
5583 if ((ctxt->sax != NULL) && in xmlParseEntityDecl()
5584 (ctxt->sax->getEntity != NULL)) in xmlParseEntityDecl()
5585 cur = ctxt->sax->getEntity(ctxt->userData, name); in xmlParseEntityDecl()
6006 if ((ctxt->sax != NULL) && (!ctxt->disableSAX) && in xmlParseAttributeListDecl()
6007 (ctxt->sax->attributeDecl != NULL)) in xmlParseAttributeListDecl()
6008 ctxt->sax->attributeDecl(ctxt->userData, elemName, attrName, in xmlParseAttributeListDecl()
6607 if ((ctxt->sax != NULL) && (!ctxt->disableSAX) && in xmlParseElementDecl()
6608 (ctxt->sax->elementDecl != NULL)) { in xmlParseElementDecl()
6611 ctxt->sax->elementDecl(ctxt->userData, name, ret, in xmlParseElementDecl()
7056 if ((ctxt->sax != NULL) && (ctxt->sax->characters != NULL) && in xmlParseReference()
7058 ctxt->sax->characters(ctxt->userData, out, 1); in xmlParseReference()
7064 if ((ctxt->sax != NULL) && (ctxt->sax->reference != NULL) && in xmlParseReference()
7066 ctxt->sax->reference(ctxt->userData, out); in xmlParseReference()
7074 if ((ctxt->sax != NULL) && (ctxt->sax->characters != NULL) && in xmlParseReference()
7076 ctxt->sax->characters(ctxt->userData, out, i); in xmlParseReference()
7098 if ((ctxt->sax != NULL) && (ctxt->sax->characters != NULL) && in xmlParseReference()
7100 ctxt->sax->characters(ctxt->userData, val, xmlStrlen(val)); in xmlParseReference()
7145 ret = xmlParseExternalEntityPrivate(ctxt->myDoc, ctxt, ctxt->sax, in xmlParseReference()
7270 ctxt->sax, user_data, ctxt->depth, in xmlParseReference()
7283 if ((ctxt->sax != NULL) && (ctxt->sax->reference != NULL) && in xmlParseReference()
7289 ctxt->sax->reference(ctxt->userData, ent->name); in xmlParseReference()
7297 if ((ctxt->sax != NULL) && (ctxt->sax->reference != NULL) && in xmlParseReference()
7302 ctxt->sax->reference(ctxt->userData, ent->name); in xmlParseReference()
7518 if (ctxt->sax != NULL) { in xmlParseEntityRef()
7519 if (ctxt->sax->getEntity != NULL) in xmlParseEntityRef()
7520 ent = ctxt->sax->getEntity(ctxt->userData, name); in xmlParseEntityRef()
7562 (ctxt->sax != NULL) && in xmlParseEntityRef()
7563 (ctxt->sax->reference != NULL)) { in xmlParseEntityRef()
7564 ctxt->sax->reference(ctxt->userData, name); in xmlParseEntityRef()
7715 if (ctxt->sax != NULL) { in xmlParseStringEntityRef()
7716 if (ctxt->sax->getEntity != NULL) in xmlParseStringEntityRef()
7717 ent = ctxt->sax->getEntity(ctxt->userData, name); in xmlParseStringEntityRef()
7890 if ((ctxt->sax != NULL) && in xmlParsePEReference()
7891 (ctxt->sax->getParameterEntity != NULL)) in xmlParsePEReference()
7892 entity = ctxt->sax->getParameterEntity(ctxt->userData, name); in xmlParsePEReference()
8156 if ((ctxt->sax != NULL) && in xmlParseStringPEReference()
8157 (ctxt->sax->getParameterEntity != NULL)) in xmlParseStringPEReference()
8158 entity = ctxt->sax->getParameterEntity(ctxt->userData, name); in xmlParseStringPEReference()
8263 if ((ctxt->sax != NULL) && (ctxt->sax->internalSubset != NULL) && in xmlParseDocTypeDecl()
8265 ctxt->sax->internalSubset(ctxt->userData, name, ExternalID, URI); in xmlParseDocTypeDecl()
8575 if ((ctxt->sax != NULL) && (ctxt->sax->startElement != NULL) && in xmlParseStartTag()
8578 ctxt->sax->startElement(ctxt->userData, name, atts); in xmlParseStartTag()
8580 ctxt->sax->startElement(ctxt->userData, name, NULL); in xmlParseStartTag()
8647 if ((ctxt->sax != NULL) && (ctxt->sax->endElement != NULL) && in xmlParseEndTag1()
8649 ctxt->sax->endElement(ctxt->userData, ctxt->name); in xmlParseEndTag1()
9605 if ((ctxt->sax != NULL) && (ctxt->sax->startElementNs != NULL) && in xmlParseStartTag2()
9608 ctxt->sax->startElementNs(ctxt->userData, localname, prefix, in xmlParseStartTag2()
9612 ctxt->sax->startElementNs(ctxt->userData, localname, prefix, in xmlParseStartTag2()
9707 if ((ctxt->sax != NULL) && (ctxt->sax->endElementNs != NULL) && in xmlParseEndTag2()
9709 ctxt->sax->endElementNs(ctxt->userData, ctxt->name, prefix, URI); in xmlParseEndTag2()
9819 if ((ctxt->sax != NULL) && (!ctxt->disableSAX)) { in xmlParseCDSect()
9820 if (ctxt->sax->cdataBlock != NULL) in xmlParseCDSect()
9821 ctxt->sax->cdataBlock(ctxt->userData, buf, len); in xmlParseCDSect()
9822 else if (ctxt->sax->characters != NULL) in xmlParseCDSect()
9823 ctxt->sax->characters(ctxt->userData, buf, len); in xmlParseCDSect()
9988 if ((ctxt->sax != NULL) && (ctxt->sax->endElementNs != NULL) && in xmlParseElement()
9990 ctxt->sax->endElementNs(ctxt->userData, name, prefix, URI); in xmlParseElement()
9993 if ((ctxt->sax != NULL) && (ctxt->sax->endElement != NULL) && in xmlParseElement()
9995 ctxt->sax->endElement(ctxt->userData, name); in xmlParseElement()
10627 if ((ctxt->sax) && (ctxt->sax->setDocumentLocator)) in xmlParseDocument()
10628 ctxt->sax->setDocumentLocator(ctxt->userData, &xmlDefaultSAXLocator); in xmlParseDocument()
10682 if ((ctxt->sax) && (ctxt->sax->startDocument) && (!ctxt->disableSAX)) in xmlParseDocument()
10683 ctxt->sax->startDocument(ctxt->userData); in xmlParseDocument()
10717 if ((ctxt->sax != NULL) && (ctxt->sax->externalSubset != NULL) && in xmlParseDocument()
10719 ctxt->sax->externalSubset(ctxt->userData, ctxt->intSubName, in xmlParseDocument()
10758 if ((ctxt->sax) && (ctxt->sax->endDocument != NULL)) in xmlParseDocument()
10759 ctxt->sax->endDocument(ctxt->userData); in xmlParseDocument()
10817 if ((ctxt->sax) && (ctxt->sax->setDocumentLocator)) in xmlParseExtParsedEnt()
10818 ctxt->sax->setDocumentLocator(ctxt->userData, &xmlDefaultSAXLocator); in xmlParseExtParsedEnt()
10861 if ((ctxt->sax) && (ctxt->sax->startDocument) && (!ctxt->disableSAX)) in xmlParseExtParsedEnt()
10862 ctxt->sax->startDocument(ctxt->userData); in xmlParseExtParsedEnt()
10887 if ((ctxt->sax) && (ctxt->sax->endDocument != NULL)) in xmlParseExtParsedEnt()
10888 ctxt->sax->endDocument(ctxt->userData); in xmlParseExtParsedEnt()
11255 if ((ctxt->sax) && (ctxt->sax->setDocumentLocator)) in xmlParseTryOrFinish()
11256 ctxt->sax->setDocumentLocator(ctxt->userData, in xmlParseTryOrFinish()
11264 if ((ctxt->sax) && (ctxt->sax->endDocument != NULL)) in xmlParseTryOrFinish()
11265 ctxt->sax->endDocument(ctxt->userData); in xmlParseTryOrFinish()
11274 if ((ctxt->sax) && (ctxt->sax->setDocumentLocator)) in xmlParseTryOrFinish()
11275 ctxt->sax->setDocumentLocator(ctxt->userData, in xmlParseTryOrFinish()
11299 if ((ctxt->sax) && (ctxt->sax->startDocument) && in xmlParseTryOrFinish()
11301 ctxt->sax->startDocument(ctxt->userData); in xmlParseTryOrFinish()
11309 if ((ctxt->sax) && (ctxt->sax->startDocument) && in xmlParseTryOrFinish()
11311 ctxt->sax->startDocument(ctxt->userData); in xmlParseTryOrFinish()
11319 if ((ctxt->sax) && (ctxt->sax->setDocumentLocator)) in xmlParseTryOrFinish()
11320 ctxt->sax->setDocumentLocator(ctxt->userData, in xmlParseTryOrFinish()
11327 if ((ctxt->sax) && (ctxt->sax->startDocument) && in xmlParseTryOrFinish()
11329 ctxt->sax->startDocument(ctxt->userData); in xmlParseTryOrFinish()
11349 if ((ctxt->sax) && (ctxt->sax->endDocument != NULL)) in xmlParseTryOrFinish()
11350 ctxt->sax->endDocument(ctxt->userData); in xmlParseTryOrFinish()
11381 if ((ctxt->sax) && (ctxt->sax->endDocument != NULL)) in xmlParseTryOrFinish()
11382 ctxt->sax->endDocument(ctxt->userData); in xmlParseTryOrFinish()
11403 if ((ctxt->sax != NULL) && in xmlParseTryOrFinish()
11404 (ctxt->sax->endElementNs != NULL) && in xmlParseTryOrFinish()
11406 ctxt->sax->endElementNs(ctxt->userData, name, in xmlParseTryOrFinish()
11412 if ((ctxt->sax != NULL) && in xmlParseTryOrFinish()
11413 (ctxt->sax->endElement != NULL) && in xmlParseTryOrFinish()
11415 ctxt->sax->endElement(ctxt->userData, name); in xmlParseTryOrFinish()
11598 if ((ctxt->sax != NULL) && (!ctxt->disableSAX)) { in xmlParseTryOrFinish()
11599 if (ctxt->sax->cdataBlock != NULL) in xmlParseTryOrFinish()
11600 ctxt->sax->cdataBlock(ctxt->userData, in xmlParseTryOrFinish()
11602 else if (ctxt->sax->characters != NULL) in xmlParseTryOrFinish()
11603 ctxt->sax->characters(ctxt->userData, in xmlParseTryOrFinish()
11621 if ((ctxt->sax != NULL) && (base == 0) && in xmlParseTryOrFinish()
11622 (ctxt->sax->cdataBlock != NULL) && in xmlParseTryOrFinish()
11632 ctxt->sax->cdataBlock(ctxt->userData, in xmlParseTryOrFinish()
11634 } else if ((ctxt->sax != NULL) && (base > 0) && in xmlParseTryOrFinish()
11636 if (ctxt->sax->cdataBlock != NULL) in xmlParseTryOrFinish()
11637 ctxt->sax->cdataBlock(ctxt->userData, in xmlParseTryOrFinish()
11639 else if (ctxt->sax->characters != NULL) in xmlParseTryOrFinish()
11640 ctxt->sax->characters(ctxt->userData, in xmlParseTryOrFinish()
11735 if ((ctxt->sax != NULL) && (!ctxt->disableSAX) && in xmlParseTryOrFinish()
11736 (ctxt->sax->externalSubset != NULL)) in xmlParseTryOrFinish()
11737 ctxt->sax->externalSubset(ctxt->userData, in xmlParseTryOrFinish()
11869 if ((ctxt->sax) && (ctxt->sax->endDocument != NULL)) in xmlParseTryOrFinish()
11870 ctxt->sax->endDocument(ctxt->userData); in xmlParseTryOrFinish()
11990 if ((ctxt->sax != NULL) && (!ctxt->disableSAX) && in xmlParseTryOrFinish()
11991 (ctxt->sax->externalSubset != NULL)) in xmlParseTryOrFinish()
11992 ctxt->sax->externalSubset(ctxt->userData, ctxt->intSubName, in xmlParseTryOrFinish()
12328 if ((ctxt->sax) && (ctxt->sax->endDocument != NULL)) in xmlParseChunk()
12329 ctxt->sax->endDocument(ctxt->userData); in xmlParseChunk()
12365 xmlCreatePushParserCtxt(xmlSAXHandlerPtr sax, void *user_data, in xmlCreatePushParserCtxt() argument
12395 if (sax != NULL) { in xmlCreatePushParserCtxt()
12397 if (ctxt->sax != (xmlSAXHandlerPtr) &xmlDefaultSAXHandler) in xmlCreatePushParserCtxt()
12399 xmlFree(ctxt->sax); in xmlCreatePushParserCtxt()
12400 ctxt->sax = (xmlSAXHandlerPtr) xmlMalloc(sizeof(xmlSAXHandler)); in xmlCreatePushParserCtxt()
12401 if (ctxt->sax == NULL) { in xmlCreatePushParserCtxt()
12407 memset(ctxt->sax, 0, sizeof(xmlSAXHandler)); in xmlCreatePushParserCtxt()
12408 if (sax->initialized == XML_SAX2_MAGIC) in xmlCreatePushParserCtxt()
12409 memcpy(ctxt->sax, sax, sizeof(xmlSAXHandler)); in xmlCreatePushParserCtxt()
12411 memcpy(ctxt->sax, sax, sizeof(xmlSAXHandlerV1)); in xmlCreatePushParserCtxt()
12534 xmlCreateIOParserCtxt(xmlSAXHandlerPtr sax, void *user_data, in xmlCreateIOParserCtxt() argument
12555 if (sax != NULL) { in xmlCreateIOParserCtxt()
12557 if (ctxt->sax != (xmlSAXHandlerPtr) &xmlDefaultSAXHandler) in xmlCreateIOParserCtxt()
12559 xmlFree(ctxt->sax); in xmlCreateIOParserCtxt()
12560 ctxt->sax = (xmlSAXHandlerPtr) xmlMalloc(sizeof(xmlSAXHandler)); in xmlCreateIOParserCtxt()
12561 if (ctxt->sax == NULL) { in xmlCreateIOParserCtxt()
12566 memset(ctxt->sax, 0, sizeof(xmlSAXHandler)); in xmlCreateIOParserCtxt()
12567 if (sax->initialized == XML_SAX2_MAGIC) in xmlCreateIOParserCtxt()
12568 memcpy(ctxt->sax, sax, sizeof(xmlSAXHandler)); in xmlCreateIOParserCtxt()
12570 memcpy(ctxt->sax, sax, sizeof(xmlSAXHandlerV1)); in xmlCreateIOParserCtxt()
12605 xmlIOParseDTD(xmlSAXHandlerPtr sax, xmlParserInputBufferPtr input, in xmlIOParseDTD() argument
12627 if (sax != NULL) { in xmlIOParseDTD()
12628 if (ctxt->sax != NULL) in xmlIOParseDTD()
12629 xmlFree(ctxt->sax); in xmlIOParseDTD()
12630 ctxt->sax = sax; in xmlIOParseDTD()
12641 if (sax != NULL) ctxt->sax = NULL; in xmlIOParseDTD()
12651 if (sax != NULL) ctxt->sax = NULL; in xmlIOParseDTD()
12718 if (sax != NULL) ctxt->sax = NULL; in xmlIOParseDTD()
12736 xmlSAXParseDTD(xmlSAXHandlerPtr sax, const xmlChar *ExternalID, in xmlSAXParseDTD() argument
12757 if (sax != NULL) { in xmlSAXParseDTD()
12758 if (ctxt->sax != NULL) in xmlSAXParseDTD()
12759 xmlFree(ctxt->sax); in xmlSAXParseDTD()
12760 ctxt->sax = sax; in xmlSAXParseDTD()
12777 if ((ctxt->sax != NULL) && (ctxt->sax->resolveEntity != NULL)) in xmlSAXParseDTD()
12778 input = ctxt->sax->resolveEntity(ctxt->userData, ExternalID, in xmlSAXParseDTD()
12781 if (sax != NULL) ctxt->sax = NULL; in xmlSAXParseDTD()
12792 if (sax != NULL) ctxt->sax = NULL; in xmlSAXParseDTD()
12820 if (sax != NULL) ctxt->sax = NULL; in xmlSAXParseDTD()
12849 if (sax != NULL) ctxt->sax = NULL; in xmlSAXParseDTD()
12925 oldsax = ctxt->sax; in xmlParseCtxtExternalEntity()
12926 ctxt->sax = ctx->sax; in xmlParseCtxtExternalEntity()
12947 ctxt->sax = oldsax; in xmlParseCtxtExternalEntity()
13071 ctxt->sax = oldsax; in xmlParseCtxtExternalEntity()
13102 xmlSAXHandlerPtr sax, in xmlParseExternalEntityPrivate() argument
13149 if (sax != NULL) { in xmlParseExternalEntityPrivate()
13150 oldsax = ctxt->sax; in xmlParseExternalEntityPrivate()
13151 ctxt->sax = sax; in xmlParseExternalEntityPrivate()
13175 if (sax != NULL) in xmlParseExternalEntityPrivate()
13176 ctxt->sax = oldsax; in xmlParseExternalEntityPrivate()
13273 if (sax != NULL) in xmlParseExternalEntityPrivate()
13274 ctxt->sax = oldsax; in xmlParseExternalEntityPrivate()
13313 xmlParseExternalEntity(xmlDocPtr doc, xmlSAXHandlerPtr sax, void *user_data, in xmlParseExternalEntity() argument
13315 return(xmlParseExternalEntityPrivate(doc, NULL, sax, user_data, depth, URL, in xmlParseExternalEntity()
13340 xmlParseBalancedChunkMemory(xmlDocPtr doc, xmlSAXHandlerPtr sax, in xmlParseBalancedChunkMemory() argument
13342 return xmlParseBalancedChunkMemoryRecover( doc, sax, user_data, in xmlParseBalancedChunkMemory()
13416 oldsax = ctxt->sax; in xmlParseBalancedChunkMemoryInternal()
13417 ctxt->sax = oldctxt->sax; in xmlParseBalancedChunkMemoryInternal()
13426 ctxt->sax = oldsax; in xmlParseBalancedChunkMemoryInternal()
13442 ctxt->sax = oldsax; in xmlParseBalancedChunkMemoryInternal()
13530 ctxt->sax = oldsax; in xmlParseBalancedChunkMemoryInternal()
13797 xmlParseBalancedChunkMemoryRecover(xmlDocPtr doc, xmlSAXHandlerPtr sax, in xmlParseBalancedChunkMemoryRecover() argument
13822 if (sax != NULL) { in xmlParseBalancedChunkMemoryRecover()
13823 oldsax = ctxt->sax; in xmlParseBalancedChunkMemoryRecover()
13824 ctxt->sax = sax; in xmlParseBalancedChunkMemoryRecover()
13851 if (sax != NULL) in xmlParseBalancedChunkMemoryRecover()
13852 ctxt->sax = oldsax; in xmlParseBalancedChunkMemoryRecover()
13925 if (sax != NULL) in xmlParseBalancedChunkMemoryRecover()
13926 ctxt->sax = oldsax; in xmlParseBalancedChunkMemoryRecover()
13953 xmlSAXParseEntity(xmlSAXHandlerPtr sax, const char *filename) { in xmlSAXParseEntity() argument
13961 if (sax != NULL) { in xmlSAXParseEntity()
13962 if (ctxt->sax != NULL) in xmlSAXParseEntity()
13963 xmlFree(ctxt->sax); in xmlSAXParseEntity()
13964 ctxt->sax = sax; in xmlSAXParseEntity()
13977 if (sax != NULL) in xmlSAXParseEntity()
13978 ctxt->sax = NULL; in xmlSAXParseEntity()
14178 xmlSAXParseFileWithData(xmlSAXHandlerPtr sax, const char *filename, in xmlSAXParseFileWithData() argument
14189 if (sax != NULL) { in xmlSAXParseFileWithData()
14190 if (ctxt->sax != NULL) in xmlSAXParseFileWithData()
14191 xmlFree(ctxt->sax); in xmlSAXParseFileWithData()
14192 ctxt->sax = sax; in xmlSAXParseFileWithData()
14220 if (sax != NULL) in xmlSAXParseFileWithData()
14221 ctxt->sax = NULL; in xmlSAXParseFileWithData()
14243 xmlSAXParseFile(xmlSAXHandlerPtr sax, const char *filename, in xmlSAXParseFile() argument
14245 return(xmlSAXParseFileWithData(sax,filename,recovery,NULL)); in xmlSAXParseFile()
14345 xmlSAXUserParseFile(xmlSAXHandlerPtr sax, void *user_data, in xmlSAXUserParseFile() argument
14352 if (ctxt->sax != (xmlSAXHandlerPtr) &xmlDefaultSAXHandler) in xmlSAXUserParseFile()
14353 xmlFree(ctxt->sax); in xmlSAXUserParseFile()
14354 ctxt->sax = sax; in xmlSAXUserParseFile()
14370 if (sax != NULL) in xmlSAXUserParseFile()
14371 ctxt->sax = NULL; in xmlSAXUserParseFile()
14455 xmlSAXParseMemoryWithData(xmlSAXHandlerPtr sax, const char *buffer, in xmlSAXParseMemoryWithData() argument
14464 if (sax != NULL) { in xmlSAXParseMemoryWithData()
14465 if (ctxt->sax != NULL) in xmlSAXParseMemoryWithData()
14466 xmlFree(ctxt->sax); in xmlSAXParseMemoryWithData()
14467 ctxt->sax = sax; in xmlSAXParseMemoryWithData()
14484 if (sax != NULL) in xmlSAXParseMemoryWithData()
14485 ctxt->sax = NULL; in xmlSAXParseMemoryWithData()
14506 xmlSAXParseMemory(xmlSAXHandlerPtr sax, const char *buffer, in xmlSAXParseMemory() argument
14508 return xmlSAXParseMemoryWithData(sax, buffer, size, recovery, NULL); in xmlSAXParseMemory()
14553 int xmlSAXUserParseMemory(xmlSAXHandlerPtr sax, void *user_data, in xmlSAXUserParseMemory() argument
14562 if (ctxt->sax != (xmlSAXHandlerPtr) &xmlDefaultSAXHandler) in xmlSAXUserParseMemory()
14563 xmlFree(ctxt->sax); in xmlSAXUserParseMemory()
14564 ctxt->sax = sax; in xmlSAXUserParseMemory()
14580 if (sax != NULL) in xmlSAXUserParseMemory()
14581 ctxt->sax = NULL; in xmlSAXUserParseMemory()
14626 xmlSAXParseDoc(xmlSAXHandlerPtr sax, const xmlChar *cur, int recovery) { in xmlSAXParseDoc() argument
14636 if (sax != NULL) { in xmlSAXParseDoc()
14637 oldsax = ctxt->sax; in xmlSAXParseDoc()
14638 ctxt->sax = sax; in xmlSAXParseDoc()
14650 if (sax != NULL) in xmlSAXParseDoc()
14651 ctxt->sax = oldsax; in xmlSAXParseDoc()
15091 ctxt->sax->ignorableWhitespace = xmlSAX2IgnorableWhitespace; in xmlCtxtUseOptionsInternal()
15107 ctxt->sax->warning = NULL; in xmlCtxtUseOptionsInternal()
15111 ctxt->sax->error = NULL; in xmlCtxtUseOptionsInternal()
15112 ctxt->sax->fatalError = NULL; in xmlCtxtUseOptionsInternal()
15117 ctxt->sax->startElement = xmlSAX2StartElement; in xmlCtxtUseOptionsInternal()
15118 ctxt->sax->endElement = xmlSAX2EndElement; in xmlCtxtUseOptionsInternal()
15119 ctxt->sax->startElementNs = NULL; in xmlCtxtUseOptionsInternal()
15120 ctxt->sax->endElementNs = NULL; in xmlCtxtUseOptionsInternal()
15121 ctxt->sax->initialized = 1; in xmlCtxtUseOptionsInternal()
15134 ctxt->sax->cdataBlock = NULL; in xmlCtxtUseOptionsInternal()