• Home
  • Raw
  • Download

Lines Matching refs:sax

320 	              xmlSAXHandlerPtr sax,
643 if ((ctxt != NULL) && (ctxt->sax != NULL) && in xmlWarningMsg()
644 (ctxt->sax->initialized == XML_SAX2_MAGIC)) in xmlWarningMsg()
645 schannel = ctxt->sax->serror; in xmlWarningMsg()
648 (ctxt->sax) ? ctxt->sax->warning : NULL, in xmlWarningMsg()
683 if ((ctxt->sax != NULL) && (ctxt->sax->initialized == XML_SAX2_MAGIC)) in xmlValidityError()
684 schannel = ctxt->sax->serror; in xmlValidityError()
1108 xmlSAXHandlerPtr sax; in xmlDetectSAX2() local
1110 sax = ctxt->sax; in xmlDetectSAX2()
1112 if ((sax) && (sax->initialized == XML_SAX2_MAGIC) && in xmlDetectSAX2()
1113 ((sax->startElementNs != NULL) || in xmlDetectSAX2()
1114 (sax->endElementNs != NULL) || in xmlDetectSAX2()
1115 ((sax->startElement == NULL) && (sax->endElement == NULL)))) in xmlDetectSAX2()
2878 if (ctxt->sax->ignorableWhitespace == ctxt->sax->characters) in areBlanks()
4461 if ((ctxt->sax != NULL) && in xmlParseCharData()
4462 (ctxt->sax->ignorableWhitespace != in xmlParseCharData()
4463 ctxt->sax->characters)) { in xmlParseCharData()
4465 if (ctxt->sax->ignorableWhitespace != NULL) in xmlParseCharData()
4466 ctxt->sax->ignorableWhitespace(ctxt->userData, in xmlParseCharData()
4469 if (ctxt->sax->characters != NULL) in xmlParseCharData()
4470 ctxt->sax->characters(ctxt->userData, in xmlParseCharData()
4475 } else if ((ctxt->sax != NULL) && in xmlParseCharData()
4476 (ctxt->sax->characters != NULL)) { in xmlParseCharData()
4477 ctxt->sax->characters(ctxt->userData, in xmlParseCharData()
4510 if ((ctxt->sax != NULL) && in xmlParseCharData()
4511 (ctxt->sax->ignorableWhitespace != in xmlParseCharData()
4512 ctxt->sax->characters) && in xmlParseCharData()
4518 if (ctxt->sax->ignorableWhitespace != NULL) in xmlParseCharData()
4519 ctxt->sax->ignorableWhitespace(ctxt->userData, in xmlParseCharData()
4522 if (ctxt->sax->characters != NULL) in xmlParseCharData()
4523 ctxt->sax->characters(ctxt->userData, in xmlParseCharData()
4530 } else if (ctxt->sax != NULL) { in xmlParseCharData()
4531 if (ctxt->sax->characters != NULL) in xmlParseCharData()
4532 ctxt->sax->characters(ctxt->userData, in xmlParseCharData()
4607 if ((ctxt->sax != NULL) && (!ctxt->disableSAX)) { in xmlParseCharDataComplex()
4609 if (ctxt->sax->ignorableWhitespace != NULL) in xmlParseCharDataComplex()
4610 ctxt->sax->ignorableWhitespace(ctxt->userData, in xmlParseCharDataComplex()
4613 if (ctxt->sax->characters != NULL) in xmlParseCharDataComplex()
4614 ctxt->sax->characters(ctxt->userData, buf, nbchar); in xmlParseCharDataComplex()
4615 if ((ctxt->sax->characters != in xmlParseCharDataComplex()
4616 ctxt->sax->ignorableWhitespace) && in xmlParseCharDataComplex()
4642 if ((ctxt->sax != NULL) && (!ctxt->disableSAX)) { in xmlParseCharDataComplex()
4644 if (ctxt->sax->ignorableWhitespace != NULL) in xmlParseCharDataComplex()
4645 ctxt->sax->ignorableWhitespace(ctxt->userData, buf, nbchar); in xmlParseCharDataComplex()
4647 if (ctxt->sax->characters != NULL) in xmlParseCharDataComplex()
4648 ctxt->sax->characters(ctxt->userData, buf, nbchar); in xmlParseCharDataComplex()
4649 if ((ctxt->sax->characters != ctxt->sax->ignorableWhitespace) && in xmlParseCharDataComplex()
4868 if ((ctxt->sax != NULL) && (ctxt->sax->comment != NULL) && in xmlParseCommentComplex()
4870 ctxt->sax->comment(ctxt->userData, buf); in xmlParseCommentComplex()
4950 if ((ctxt->sax != NULL) && in xmlParseComment()
4951 (ctxt->sax->comment != NULL)) { in xmlParseComment()
5019 if ((ctxt->sax != NULL) && (ctxt->sax->comment != NULL) && in xmlParseComment()
5022 ctxt->sax->comment(ctxt->userData, buf); in xmlParseComment()
5024 ctxt->sax->comment(ctxt->userData, BAD_CAST ""); in xmlParseComment()
5217 if ((ctxt->sax) && (!ctxt->disableSAX) && in xmlParsePI()
5218 (ctxt->sax->processingInstruction != NULL)) in xmlParsePI()
5219 ctxt->sax->processingInstruction(ctxt->userData, in xmlParsePI()
5304 if ((ctxt->sax) && (!ctxt->disableSAX) && in xmlParsePI()
5305 (ctxt->sax->processingInstruction != NULL)) in xmlParsePI()
5306 ctxt->sax->processingInstruction(ctxt->userData, in xmlParsePI()
5379 if ((ctxt->sax != NULL) && (!ctxt->disableSAX) && in xmlParseNotationDecl()
5380 (ctxt->sax->notationDecl != NULL)) in xmlParseNotationDecl()
5381 ctxt->sax->notationDecl(ctxt->userData, name, Pubid, Systemid); in xmlParseNotationDecl()
5464 if ((ctxt->sax != NULL) && in xmlParseEntityDecl()
5465 (!ctxt->disableSAX) && (ctxt->sax->entityDecl != NULL)) in xmlParseEntityDecl()
5466 ctxt->sax->entityDecl(ctxt->userData, name, in xmlParseEntityDecl()
5495 if ((ctxt->sax != NULL) && in xmlParseEntityDecl()
5497 (ctxt->sax->entityDecl != NULL)) in xmlParseEntityDecl()
5498 ctxt->sax->entityDecl(ctxt->userData, name, in xmlParseEntityDecl()
5509 if ((ctxt->sax != NULL) && in xmlParseEntityDecl()
5510 (!ctxt->disableSAX) && (ctxt->sax->entityDecl != NULL)) in xmlParseEntityDecl()
5511 ctxt->sax->entityDecl(ctxt->userData, name, in xmlParseEntityDecl()
5573 if ((ctxt->sax != NULL) && (!ctxt->disableSAX) && in xmlParseEntityDecl()
5574 (ctxt->sax->unparsedEntityDecl != NULL)) in xmlParseEntityDecl()
5575 ctxt->sax->unparsedEntityDecl(ctxt->userData, name, in xmlParseEntityDecl()
5578 if ((ctxt->sax != NULL) && in xmlParseEntityDecl()
5579 (!ctxt->disableSAX) && (ctxt->sax->entityDecl != NULL)) in xmlParseEntityDecl()
5580 ctxt->sax->entityDecl(ctxt->userData, name, in xmlParseEntityDecl()
5631 if ((ctxt->sax != NULL) && in xmlParseEntityDecl()
5632 (ctxt->sax->getParameterEntity != NULL)) in xmlParseEntityDecl()
5633 cur = ctxt->sax->getParameterEntity(ctxt->userData, name); in xmlParseEntityDecl()
5635 if ((ctxt->sax != NULL) && in xmlParseEntityDecl()
5636 (ctxt->sax->getEntity != NULL)) in xmlParseEntityDecl()
5637 cur = ctxt->sax->getEntity(ctxt->userData, name); in xmlParseEntityDecl()
6058 if ((ctxt->sax != NULL) && (!ctxt->disableSAX) && in xmlParseAttributeListDecl()
6059 (ctxt->sax->attributeDecl != NULL)) in xmlParseAttributeListDecl()
6060 ctxt->sax->attributeDecl(ctxt->userData, elemName, attrName, in xmlParseAttributeListDecl()
6672 if ((ctxt->sax != NULL) && (!ctxt->disableSAX) && in xmlParseElementDecl()
6673 (ctxt->sax->elementDecl != NULL)) { in xmlParseElementDecl()
6676 ctxt->sax->elementDecl(ctxt->userData, name, ret, in xmlParseElementDecl()
7113 if ((ctxt->sax != NULL) && (ctxt->sax->characters != NULL) && in xmlParseReference()
7115 ctxt->sax->characters(ctxt->userData, out, 1); in xmlParseReference()
7121 if ((ctxt->sax != NULL) && (ctxt->sax->reference != NULL) && in xmlParseReference()
7123 ctxt->sax->reference(ctxt->userData, out); in xmlParseReference()
7131 if ((ctxt->sax != NULL) && (ctxt->sax->characters != NULL) && in xmlParseReference()
7133 ctxt->sax->characters(ctxt->userData, out, i); in xmlParseReference()
7155 if ((ctxt->sax != NULL) && (ctxt->sax->characters != NULL) && in xmlParseReference()
7157 ctxt->sax->characters(ctxt->userData, val, xmlStrlen(val)); in xmlParseReference()
7202 ret = xmlParseExternalEntityPrivate(ctxt->myDoc, ctxt, ctxt->sax, in xmlParseReference()
7327 ctxt->sax, user_data, ctxt->depth, in xmlParseReference()
7340 if ((ctxt->sax != NULL) && (ctxt->sax->reference != NULL) && in xmlParseReference()
7346 ctxt->sax->reference(ctxt->userData, ent->name); in xmlParseReference()
7354 if ((ctxt->sax != NULL) && (ctxt->sax->reference != NULL) && in xmlParseReference()
7359 ctxt->sax->reference(ctxt->userData, ent->name); in xmlParseReference()
7575 if (ctxt->sax != NULL) { in xmlParseEntityRef()
7576 if (ctxt->sax->getEntity != NULL) in xmlParseEntityRef()
7577 ent = ctxt->sax->getEntity(ctxt->userData, name); in xmlParseEntityRef()
7619 (ctxt->sax != NULL) && in xmlParseEntityRef()
7620 (ctxt->sax->reference != NULL)) { in xmlParseEntityRef()
7621 ctxt->sax->reference(ctxt->userData, name); in xmlParseEntityRef()
7772 if (ctxt->sax != NULL) { in xmlParseStringEntityRef()
7773 if (ctxt->sax->getEntity != NULL) in xmlParseStringEntityRef()
7774 ent = ctxt->sax->getEntity(ctxt->userData, name); in xmlParseStringEntityRef()
7947 if ((ctxt->sax != NULL) && in xmlParsePEReference()
7948 (ctxt->sax->getParameterEntity != NULL)) in xmlParsePEReference()
7949 entity = ctxt->sax->getParameterEntity(ctxt->userData, name); in xmlParsePEReference()
8216 if ((ctxt->sax != NULL) && in xmlParseStringPEReference()
8217 (ctxt->sax->getParameterEntity != NULL)) in xmlParseStringPEReference()
8218 entity = ctxt->sax->getParameterEntity(ctxt->userData, name); in xmlParseStringPEReference()
8323 if ((ctxt->sax != NULL) && (ctxt->sax->internalSubset != NULL) && in xmlParseDocTypeDecl()
8325 ctxt->sax->internalSubset(ctxt->userData, name, ExternalID, URI); in xmlParseDocTypeDecl()
8644 if ((ctxt->sax != NULL) && (ctxt->sax->startElement != NULL) && in xmlParseStartTag()
8647 ctxt->sax->startElement(ctxt->userData, name, atts); in xmlParseStartTag()
8649 ctxt->sax->startElement(ctxt->userData, name, NULL); in xmlParseStartTag()
8716 if ((ctxt->sax != NULL) && (ctxt->sax->endElement != NULL) && in xmlParseEndTag1()
8718 ctxt->sax->endElement(ctxt->userData, ctxt->name); in xmlParseEndTag1()
9658 if ((ctxt->sax != NULL) && (ctxt->sax->startElementNs != NULL) && in xmlParseStartTag2()
9661 ctxt->sax->startElementNs(ctxt->userData, localname, prefix, in xmlParseStartTag2()
9665 ctxt->sax->startElementNs(ctxt->userData, localname, prefix, in xmlParseStartTag2()
9741 if ((ctxt->sax != NULL) && (ctxt->sax->endElementNs != NULL) && in xmlParseEndTag2()
9743 ctxt->sax->endElementNs(ctxt->userData, ctxt->name, tag->prefix, in xmlParseEndTag2()
9856 if ((ctxt->sax != NULL) && (!ctxt->disableSAX)) { in xmlParseCDSect()
9857 if (ctxt->sax->cdataBlock != NULL) in xmlParseCDSect()
9858 ctxt->sax->cdataBlock(ctxt->userData, buf, len); in xmlParseCDSect()
9859 else if (ctxt->sax->characters != NULL) in xmlParseCDSect()
9860 ctxt->sax->characters(ctxt->userData, buf, len); in xmlParseCDSect()
10083 if ((ctxt->sax != NULL) && (ctxt->sax->endElementNs != NULL) && in xmlParseElementStart()
10085 ctxt->sax->endElementNs(ctxt->userData, name, prefix, URI); in xmlParseElementStart()
10088 if ((ctxt->sax != NULL) && (ctxt->sax->endElement != NULL) && in xmlParseElementStart()
10090 ctxt->sax->endElement(ctxt->userData, name); in xmlParseElementStart()
10717 if ((ctxt->sax) && (ctxt->sax->setDocumentLocator)) in xmlParseDocument()
10718 ctxt->sax->setDocumentLocator(ctxt->userData, &xmlDefaultSAXLocator); in xmlParseDocument()
10772 if ((ctxt->sax) && (ctxt->sax->startDocument) && (!ctxt->disableSAX)) in xmlParseDocument()
10773 ctxt->sax->startDocument(ctxt->userData); in xmlParseDocument()
10807 if ((ctxt->sax != NULL) && (ctxt->sax->externalSubset != NULL) && in xmlParseDocument()
10809 ctxt->sax->externalSubset(ctxt->userData, ctxt->intSubName, in xmlParseDocument()
10848 if ((ctxt->sax) && (ctxt->sax->endDocument != NULL)) in xmlParseDocument()
10849 ctxt->sax->endDocument(ctxt->userData); in xmlParseDocument()
10907 if ((ctxt->sax) && (ctxt->sax->setDocumentLocator)) in xmlParseExtParsedEnt()
10908 ctxt->sax->setDocumentLocator(ctxt->userData, &xmlDefaultSAXLocator); in xmlParseExtParsedEnt()
10951 if ((ctxt->sax) && (ctxt->sax->startDocument) && (!ctxt->disableSAX)) in xmlParseExtParsedEnt()
10952 ctxt->sax->startDocument(ctxt->userData); in xmlParseExtParsedEnt()
10977 if ((ctxt->sax) && (ctxt->sax->endDocument != NULL)) in xmlParseExtParsedEnt()
10978 ctxt->sax->endDocument(ctxt->userData); in xmlParseExtParsedEnt()
11345 if ((ctxt->sax) && (ctxt->sax->setDocumentLocator)) in xmlParseTryOrFinish()
11346 ctxt->sax->setDocumentLocator(ctxt->userData, in xmlParseTryOrFinish()
11354 if ((ctxt->sax) && (ctxt->sax->endDocument != NULL)) in xmlParseTryOrFinish()
11355 ctxt->sax->endDocument(ctxt->userData); in xmlParseTryOrFinish()
11364 if ((ctxt->sax) && (ctxt->sax->setDocumentLocator)) in xmlParseTryOrFinish()
11365 ctxt->sax->setDocumentLocator(ctxt->userData, in xmlParseTryOrFinish()
11389 if ((ctxt->sax) && (ctxt->sax->startDocument) && in xmlParseTryOrFinish()
11391 ctxt->sax->startDocument(ctxt->userData); in xmlParseTryOrFinish()
11399 if ((ctxt->sax) && (ctxt->sax->startDocument) && in xmlParseTryOrFinish()
11401 ctxt->sax->startDocument(ctxt->userData); in xmlParseTryOrFinish()
11409 if ((ctxt->sax) && (ctxt->sax->setDocumentLocator)) in xmlParseTryOrFinish()
11410 ctxt->sax->setDocumentLocator(ctxt->userData, in xmlParseTryOrFinish()
11417 if ((ctxt->sax) && (ctxt->sax->startDocument) && in xmlParseTryOrFinish()
11419 ctxt->sax->startDocument(ctxt->userData); in xmlParseTryOrFinish()
11440 if ((ctxt->sax) && (ctxt->sax->endDocument != NULL)) in xmlParseTryOrFinish()
11441 ctxt->sax->endDocument(ctxt->userData); in xmlParseTryOrFinish()
11472 if ((ctxt->sax) && (ctxt->sax->endDocument != NULL)) in xmlParseTryOrFinish()
11473 ctxt->sax->endDocument(ctxt->userData); in xmlParseTryOrFinish()
11494 if ((ctxt->sax != NULL) && in xmlParseTryOrFinish()
11495 (ctxt->sax->endElementNs != NULL) && in xmlParseTryOrFinish()
11497 ctxt->sax->endElementNs(ctxt->userData, name, in xmlParseTryOrFinish()
11503 if ((ctxt->sax != NULL) && in xmlParseTryOrFinish()
11504 (ctxt->sax->endElement != NULL) && in xmlParseTryOrFinish()
11506 ctxt->sax->endElement(ctxt->userData, name); in xmlParseTryOrFinish()
11680 if ((ctxt->sax != NULL) && (!ctxt->disableSAX)) { in xmlParseTryOrFinish()
11681 if (ctxt->sax->cdataBlock != NULL) in xmlParseTryOrFinish()
11682 ctxt->sax->cdataBlock(ctxt->userData, in xmlParseTryOrFinish()
11684 else if (ctxt->sax->characters != NULL) in xmlParseTryOrFinish()
11685 ctxt->sax->characters(ctxt->userData, in xmlParseTryOrFinish()
11703 if ((ctxt->sax != NULL) && (base == 0) && in xmlParseTryOrFinish()
11704 (ctxt->sax->cdataBlock != NULL) && in xmlParseTryOrFinish()
11714 ctxt->sax->cdataBlock(ctxt->userData, in xmlParseTryOrFinish()
11716 } else if ((ctxt->sax != NULL) && (base > 0) && in xmlParseTryOrFinish()
11718 if (ctxt->sax->cdataBlock != NULL) in xmlParseTryOrFinish()
11719 ctxt->sax->cdataBlock(ctxt->userData, in xmlParseTryOrFinish()
11721 else if (ctxt->sax->characters != NULL) in xmlParseTryOrFinish()
11722 ctxt->sax->characters(ctxt->userData, in xmlParseTryOrFinish()
11817 if ((ctxt->sax != NULL) && (!ctxt->disableSAX) && in xmlParseTryOrFinish()
11818 (ctxt->sax->externalSubset != NULL)) in xmlParseTryOrFinish()
11819 ctxt->sax->externalSubset(ctxt->userData, in xmlParseTryOrFinish()
11951 if ((ctxt->sax) && (ctxt->sax->endDocument != NULL)) in xmlParseTryOrFinish()
11952 ctxt->sax->endDocument(ctxt->userData); in xmlParseTryOrFinish()
12072 if ((ctxt->sax != NULL) && (!ctxt->disableSAX) && in xmlParseTryOrFinish()
12073 (ctxt->sax->externalSubset != NULL)) in xmlParseTryOrFinish()
12074 ctxt->sax->externalSubset(ctxt->userData, ctxt->intSubName, in xmlParseTryOrFinish()
12410 if ((ctxt->sax) && (ctxt->sax->endDocument != NULL)) in xmlParseChunk()
12411 ctxt->sax->endDocument(ctxt->userData); in xmlParseChunk()
12447 xmlCreatePushParserCtxt(xmlSAXHandlerPtr sax, void *user_data, in xmlCreatePushParserCtxt() argument
12470 if (sax != NULL) { in xmlCreatePushParserCtxt()
12472 if (ctxt->sax != (xmlSAXHandlerPtr) &xmlDefaultSAXHandler) in xmlCreatePushParserCtxt()
12474 xmlFree(ctxt->sax); in xmlCreatePushParserCtxt()
12475 ctxt->sax = (xmlSAXHandlerPtr) xmlMalloc(sizeof(xmlSAXHandler)); in xmlCreatePushParserCtxt()
12476 if (ctxt->sax == NULL) { in xmlCreatePushParserCtxt()
12482 memset(ctxt->sax, 0, sizeof(xmlSAXHandler)); in xmlCreatePushParserCtxt()
12483 if (sax->initialized == XML_SAX2_MAGIC) in xmlCreatePushParserCtxt()
12484 memcpy(ctxt->sax, sax, sizeof(xmlSAXHandler)); in xmlCreatePushParserCtxt()
12486 memcpy(ctxt->sax, sax, sizeof(xmlSAXHandlerV1)); in xmlCreatePushParserCtxt()
12609 xmlCreateIOParserCtxt(xmlSAXHandlerPtr sax, void *user_data, in xmlCreateIOParserCtxt() argument
12630 if (sax != NULL) { in xmlCreateIOParserCtxt()
12632 if (ctxt->sax != (xmlSAXHandlerPtr) &xmlDefaultSAXHandler) in xmlCreateIOParserCtxt()
12634 xmlFree(ctxt->sax); in xmlCreateIOParserCtxt()
12635 ctxt->sax = (xmlSAXHandlerPtr) xmlMalloc(sizeof(xmlSAXHandler)); in xmlCreateIOParserCtxt()
12636 if (ctxt->sax == NULL) { in xmlCreateIOParserCtxt()
12641 memset(ctxt->sax, 0, sizeof(xmlSAXHandler)); in xmlCreateIOParserCtxt()
12642 if (sax->initialized == XML_SAX2_MAGIC) in xmlCreateIOParserCtxt()
12643 memcpy(ctxt->sax, sax, sizeof(xmlSAXHandler)); in xmlCreateIOParserCtxt()
12645 memcpy(ctxt->sax, sax, sizeof(xmlSAXHandlerV1)); in xmlCreateIOParserCtxt()
12680 xmlIOParseDTD(xmlSAXHandlerPtr sax, xmlParserInputBufferPtr input, in xmlIOParseDTD() argument
12702 if (sax != NULL) { in xmlIOParseDTD()
12703 if (ctxt->sax != NULL) in xmlIOParseDTD()
12704 xmlFree(ctxt->sax); in xmlIOParseDTD()
12705 ctxt->sax = sax; in xmlIOParseDTD()
12716 if (sax != NULL) ctxt->sax = NULL; in xmlIOParseDTD()
12726 if (sax != NULL) ctxt->sax = NULL; in xmlIOParseDTD()
12793 if (sax != NULL) ctxt->sax = NULL; in xmlIOParseDTD()
12811 xmlSAXParseDTD(xmlSAXHandlerPtr sax, const xmlChar *ExternalID, in xmlSAXParseDTD() argument
12832 if (sax != NULL) { in xmlSAXParseDTD()
12833 if (ctxt->sax != NULL) in xmlSAXParseDTD()
12834 xmlFree(ctxt->sax); in xmlSAXParseDTD()
12835 ctxt->sax = sax; in xmlSAXParseDTD()
12852 if ((ctxt->sax != NULL) && (ctxt->sax->resolveEntity != NULL)) in xmlSAXParseDTD()
12853 input = ctxt->sax->resolveEntity(ctxt->userData, ExternalID, in xmlSAXParseDTD()
12856 if (sax != NULL) ctxt->sax = NULL; in xmlSAXParseDTD()
12867 if (sax != NULL) ctxt->sax = NULL; in xmlSAXParseDTD()
12895 if (sax != NULL) ctxt->sax = NULL; in xmlSAXParseDTD()
12924 if (sax != NULL) ctxt->sax = NULL; in xmlSAXParseDTD()
12985 return xmlParseExternalEntityPrivate(ctx->myDoc, ctx, ctx->sax, in xmlParseCtxtExternalEntity()
13009 xmlSAXHandlerPtr sax, in xmlParseExternalEntityPrivate() argument
13037 if (sax != NULL) { in xmlParseExternalEntityPrivate()
13038 oldsax = ctxt->sax; in xmlParseExternalEntityPrivate()
13039 ctxt->sax = sax; in xmlParseExternalEntityPrivate()
13063 if (sax != NULL) in xmlParseExternalEntityPrivate()
13064 ctxt->sax = oldsax; in xmlParseExternalEntityPrivate()
13205 if (sax != NULL) in xmlParseExternalEntityPrivate()
13206 ctxt->sax = oldsax; in xmlParseExternalEntityPrivate()
13250 xmlParseExternalEntity(xmlDocPtr doc, xmlSAXHandlerPtr sax, void *user_data, in xmlParseExternalEntity() argument
13252 return(xmlParseExternalEntityPrivate(doc, NULL, sax, user_data, depth, URL, in xmlParseExternalEntity()
13277 xmlParseBalancedChunkMemory(xmlDocPtr doc, xmlSAXHandlerPtr sax, in xmlParseBalancedChunkMemory() argument
13279 return xmlParseBalancedChunkMemoryRecover( doc, sax, user_data, in xmlParseBalancedChunkMemory()
13353 oldsax = ctxt->sax; in xmlParseBalancedChunkMemoryInternal()
13354 ctxt->sax = oldctxt->sax; in xmlParseBalancedChunkMemoryInternal()
13363 ctxt->sax = oldsax; in xmlParseBalancedChunkMemoryInternal()
13379 ctxt->sax = oldsax; in xmlParseBalancedChunkMemoryInternal()
13467 ctxt->sax = oldsax; in xmlParseBalancedChunkMemoryInternal()
13734 xmlParseBalancedChunkMemoryRecover(xmlDocPtr doc, xmlSAXHandlerPtr sax, in xmlParseBalancedChunkMemoryRecover() argument
13759 if (sax != NULL) { in xmlParseBalancedChunkMemoryRecover()
13760 oldsax = ctxt->sax; in xmlParseBalancedChunkMemoryRecover()
13761 ctxt->sax = sax; in xmlParseBalancedChunkMemoryRecover()
13789 if (sax != NULL) in xmlParseBalancedChunkMemoryRecover()
13790 ctxt->sax = oldsax; in xmlParseBalancedChunkMemoryRecover()
13864 if (sax != NULL) in xmlParseBalancedChunkMemoryRecover()
13865 ctxt->sax = oldsax; in xmlParseBalancedChunkMemoryRecover()
13893 xmlSAXParseEntity(xmlSAXHandlerPtr sax, const char *filename) { in xmlSAXParseEntity() argument
13901 if (sax != NULL) { in xmlSAXParseEntity()
13902 if (ctxt->sax != NULL) in xmlSAXParseEntity()
13903 xmlFree(ctxt->sax); in xmlSAXParseEntity()
13904 ctxt->sax = sax; in xmlSAXParseEntity()
13917 if (sax != NULL) in xmlSAXParseEntity()
13918 ctxt->sax = NULL; in xmlSAXParseEntity()
14122 xmlSAXParseFileWithData(xmlSAXHandlerPtr sax, const char *filename, in xmlSAXParseFileWithData() argument
14133 if (sax != NULL) { in xmlSAXParseFileWithData()
14134 if (ctxt->sax != NULL) in xmlSAXParseFileWithData()
14135 xmlFree(ctxt->sax); in xmlSAXParseFileWithData()
14136 ctxt->sax = sax; in xmlSAXParseFileWithData()
14164 if (sax != NULL) in xmlSAXParseFileWithData()
14165 ctxt->sax = NULL; in xmlSAXParseFileWithData()
14187 xmlSAXParseFile(xmlSAXHandlerPtr sax, const char *filename, in xmlSAXParseFile() argument
14189 return(xmlSAXParseFileWithData(sax,filename,recovery,NULL)); in xmlSAXParseFile()
14289 xmlSAXUserParseFile(xmlSAXHandlerPtr sax, void *user_data, in xmlSAXUserParseFile() argument
14296 if (ctxt->sax != (xmlSAXHandlerPtr) &xmlDefaultSAXHandler) in xmlSAXUserParseFile()
14297 xmlFree(ctxt->sax); in xmlSAXUserParseFile()
14298 ctxt->sax = sax; in xmlSAXUserParseFile()
14314 if (sax != NULL) in xmlSAXUserParseFile()
14315 ctxt->sax = NULL; in xmlSAXUserParseFile()
14399 xmlSAXParseMemoryWithData(xmlSAXHandlerPtr sax, const char *buffer, in xmlSAXParseMemoryWithData() argument
14408 if (sax != NULL) { in xmlSAXParseMemoryWithData()
14409 if (ctxt->sax != NULL) in xmlSAXParseMemoryWithData()
14410 xmlFree(ctxt->sax); in xmlSAXParseMemoryWithData()
14411 ctxt->sax = sax; in xmlSAXParseMemoryWithData()
14428 if (sax != NULL) in xmlSAXParseMemoryWithData()
14429 ctxt->sax = NULL; in xmlSAXParseMemoryWithData()
14450 xmlSAXParseMemory(xmlSAXHandlerPtr sax, const char *buffer, in xmlSAXParseMemory() argument
14452 return xmlSAXParseMemoryWithData(sax, buffer, size, recovery, NULL); in xmlSAXParseMemory()
14497 int xmlSAXUserParseMemory(xmlSAXHandlerPtr sax, void *user_data, in xmlSAXUserParseMemory() argument
14506 if (ctxt->sax != (xmlSAXHandlerPtr) &xmlDefaultSAXHandler) in xmlSAXUserParseMemory()
14507 xmlFree(ctxt->sax); in xmlSAXUserParseMemory()
14508 ctxt->sax = sax; in xmlSAXUserParseMemory()
14524 if (sax != NULL) in xmlSAXUserParseMemory()
14525 ctxt->sax = NULL; in xmlSAXUserParseMemory()
14570 xmlSAXParseDoc(xmlSAXHandlerPtr sax, const xmlChar *cur, int recovery) { in xmlSAXParseDoc() argument
14580 if (sax != NULL) { in xmlSAXParseDoc()
14581 oldsax = ctxt->sax; in xmlSAXParseDoc()
14582 ctxt->sax = sax; in xmlSAXParseDoc()
14594 if (sax != NULL) in xmlSAXParseDoc()
14595 ctxt->sax = oldsax; in xmlSAXParseDoc()
15042 ctxt->sax->ignorableWhitespace = xmlSAX2IgnorableWhitespace; in xmlCtxtUseOptionsInternal()
15058 ctxt->sax->warning = NULL; in xmlCtxtUseOptionsInternal()
15062 ctxt->sax->error = NULL; in xmlCtxtUseOptionsInternal()
15063 ctxt->sax->fatalError = NULL; in xmlCtxtUseOptionsInternal()
15068 ctxt->sax->startElement = xmlSAX2StartElement; in xmlCtxtUseOptionsInternal()
15069 ctxt->sax->endElement = xmlSAX2EndElement; in xmlCtxtUseOptionsInternal()
15070 ctxt->sax->startElementNs = NULL; in xmlCtxtUseOptionsInternal()
15071 ctxt->sax->endElementNs = NULL; in xmlCtxtUseOptionsInternal()
15072 ctxt->sax->initialized = 1; in xmlCtxtUseOptionsInternal()
15085 ctxt->sax->cdataBlock = NULL; in xmlCtxtUseOptionsInternal()