Lines Matching refs:sax

221 	              xmlSAXHandlerPtr sax,
528 if ((ctxt != NULL) && (ctxt->sax != NULL) &&
529 (ctxt->sax->initialized == XML_SAX2_MAGIC))
530 schannel = ctxt->sax->serror;
532 (ctxt->sax) ? ctxt->sax->warning : NULL,
560 if ((ctxt->sax != NULL) && (ctxt->sax->initialized == XML_SAX2_MAGIC))
561 schannel = ctxt->sax->serror;
944 if ((ctxt->sax) && (ctxt->sax->initialized == XML_SAX2_MAGIC) &&
945 ((ctxt->sax->startElementNs != NULL) ||
946 (ctxt->sax->endElementNs != NULL))) ctxt->sax2 = 1;
2194 if ((ctxt->sax != NULL) && (ctxt->sax->getParameterEntity != NULL))
2195 entity = ctxt->sax->getParameterEntity(ctxt->userData, name);
2525 if (ctxt->sax->ignorableWhitespace == ctxt->sax->characters)
3690 if ((ctxt->sax != NULL) &&
3691 (ctxt->sax->ignorableWhitespace !=
3692 ctxt->sax->characters)) {
3694 if (ctxt->sax->ignorableWhitespace != NULL)
3695 ctxt->sax->ignorableWhitespace(ctxt->userData,
3698 if (ctxt->sax->characters != NULL)
3699 ctxt->sax->characters(ctxt->userData,
3704 } else if ((ctxt->sax != NULL) &&
3705 (ctxt->sax->characters != NULL)) {
3706 ctxt->sax->characters(ctxt->userData,
3739 if ((ctxt->sax != NULL) &&
3740 (ctxt->sax->ignorableWhitespace !=
3741 ctxt->sax->characters) &&
3747 if (ctxt->sax->ignorableWhitespace != NULL)
3748 ctxt->sax->ignorableWhitespace(ctxt->userData,
3751 if (ctxt->sax->characters != NULL)
3752 ctxt->sax->characters(ctxt->userData,
3759 } else if (ctxt->sax != NULL) {
3760 if (ctxt->sax->characters != NULL)
3761 ctxt->sax->characters(ctxt->userData,
3831 if ((ctxt->sax != NULL) && (!ctxt->disableSAX)) {
3833 if (ctxt->sax->ignorableWhitespace != NULL)
3834 ctxt->sax->ignorableWhitespace(ctxt->userData,
3837 if (ctxt->sax->characters != NULL)
3838 ctxt->sax->characters(ctxt->userData, buf, nbchar);
3839 if ((ctxt->sax->characters !=
3840 ctxt->sax->ignorableWhitespace) &&
3860 if ((ctxt->sax != NULL) && (!ctxt->disableSAX)) {
3862 if (ctxt->sax->ignorableWhitespace != NULL)
3863 ctxt->sax->ignorableWhitespace(ctxt->userData, buf, nbchar);
3865 if (ctxt->sax->characters != NULL)
3866 ctxt->sax->characters(ctxt->userData, buf, nbchar);
3867 if ((ctxt->sax->characters != ctxt->sax->ignorableWhitespace) &&
4072 if ((ctxt->sax != NULL) && (ctxt->sax->comment != NULL) &&
4074 ctxt->sax->comment(ctxt->userData, buf);
4149 if ((ctxt->sax != NULL) &&
4150 (ctxt->sax->comment != NULL)) {
4203 if ((ctxt->sax != NULL) && (ctxt->sax->comment != NULL) &&
4206 ctxt->sax->comment(ctxt->userData, buf);
4208 ctxt->sax->comment(ctxt->userData, BAD_CAST "");
4387 if ((ctxt->sax) && (!ctxt->disableSAX) &&
4388 (ctxt->sax->processingInstruction != NULL))
4389 ctxt->sax->processingInstruction(ctxt->userData,
4463 if ((ctxt->sax) && (!ctxt->disableSAX) &&
4464 (ctxt->sax->processingInstruction != NULL))
4465 ctxt->sax->processingInstruction(ctxt->userData,
4534 if ((ctxt->sax != NULL) && (!ctxt->disableSAX) &&
4535 (ctxt->sax->notationDecl != NULL))
4536 ctxt->sax->notationDecl(ctxt->userData, name, Pubid, Systemid);
4619 if ((ctxt->sax != NULL) &&
4620 (!ctxt->disableSAX) && (ctxt->sax->entityDecl != NULL))
4621 ctxt->sax->entityDecl(ctxt->userData, name,
4650 if ((ctxt->sax != NULL) &&
4652 (ctxt->sax->entityDecl != NULL))
4653 ctxt->sax->entityDecl(ctxt->userData, name,
4664 if ((ctxt->sax != NULL) &&
4665 (!ctxt->disableSAX) && (ctxt->sax->entityDecl != NULL))
4666 ctxt->sax->entityDecl(ctxt->userData, name,
4725 if ((ctxt->sax != NULL) && (!ctxt->disableSAX) &&
4726 (ctxt->sax->unparsedEntityDecl != NULL))
4727 ctxt->sax->unparsedEntityDecl(ctxt->userData, name,
4730 if ((ctxt->sax != NULL) &&
4731 (!ctxt->disableSAX) && (ctxt->sax->entityDecl != NULL))
4732 ctxt->sax->entityDecl(ctxt->userData, name,
4774 if ((ctxt->sax != NULL) &&
4775 (ctxt->sax->getParameterEntity != NULL))
4776 cur = ctxt->sax->getParameterEntity(ctxt->userData, name);
4778 if ((ctxt->sax != NULL) &&
4779 (ctxt->sax->getEntity != NULL))
4780 cur = ctxt->sax->getEntity(ctxt->userData, name);
5191 if ((ctxt->sax != NULL) && (!ctxt->disableSAX) &&
5192 (ctxt->sax->attributeDecl != NULL))
5193 ctxt->sax->attributeDecl(ctxt->userData, elemName, attrName,
5750 if ((ctxt->sax != NULL) && (!ctxt->disableSAX) &&
5751 (ctxt->sax->elementDecl != NULL)) {
5754 ctxt->sax->elementDecl(ctxt->userData, name, ret,
6156 if ((ctxt->sax != NULL) && (ctxt->sax->characters != NULL) &&
6158 ctxt->sax->characters(ctxt->userData, out, 1);
6164 if ((ctxt->sax != NULL) && (ctxt->sax->reference != NULL) &&
6166 ctxt->sax->reference(ctxt->userData, out);
6174 if ((ctxt->sax != NULL) && (ctxt->sax->characters != NULL) &&
6176 ctxt->sax->characters(ctxt->userData, out, i);
6274 ctxt->sax, user_data, ctxt->depth,
6391 ctxt->sax, user_data, ctxt->depth,
6404 if ((ctxt->sax != NULL) && (ctxt->sax->reference != NULL) &&
6410 ctxt->sax->reference(ctxt->userData, ent->name);
6414 if ((ctxt->sax != NULL) && (ctxt->sax->reference != NULL) &&
6419 ctxt->sax->reference(ctxt->userData, ent->name);
6570 if ((ctxt->sax != NULL) && (ctxt->sax->characters != NULL) &&
6572 ctxt->sax->characters(ctxt->userData, val, xmlStrlen(val));
6630 if (ctxt->sax != NULL) {
6631 if (ctxt->sax->getEntity != NULL)
6632 ent = ctxt->sax->getEntity(ctxt->userData, name);
6671 (ctxt->sax != NULL) &&
6672 (ctxt->sax->reference != NULL)) {
6673 ctxt->sax->reference(ctxt->userData, name);
6805 if (ctxt->sax != NULL) {
6806 if (ctxt->sax->getEntity != NULL)
6807 ent = ctxt->sax->getEntity(ctxt->userData, name);
6968 if ((ctxt->sax != NULL) &&
6969 (ctxt->sax->getParameterEntity != NULL))
6970 entity = ctxt->sax->getParameterEntity(ctxt->userData,
7103 if ((ctxt->sax != NULL) &&
7104 (ctxt->sax->getParameterEntity != NULL))
7105 entity = ctxt->sax->getParameterEntity(ctxt->userData,
7211 if ((ctxt->sax != NULL) && (ctxt->sax->internalSubset != NULL) &&
7213 ctxt->sax->internalSubset(ctxt->userData, name, ExternalID, URI);
7522 if ((ctxt->sax != NULL) && (ctxt->sax->startElement != NULL) &&
7525 ctxt->sax->startElement(ctxt->userData, name, atts);
7527 ctxt->sax->startElement(ctxt->userData, name, NULL);
7594 if ((ctxt->sax != NULL) && (ctxt->sax->endElement != NULL) &&
7596 ctxt->sax->endElement(ctxt->userData, ctxt->name);
8478 if ((ctxt->sax != NULL) && (ctxt->sax->startElementNs != NULL) &&
8481 ctxt->sax->startElementNs(ctxt->userData, localname, prefix,
8485 ctxt->sax->startElementNs(ctxt->userData, localname, prefix,
8586 if ((ctxt->sax != NULL) && (ctxt->sax->endElementNs != NULL) &&
8588 ctxt->sax->endElementNs(ctxt->userData, ctxt->name, prefix, URI);
8687 if ((ctxt->sax != NULL) && (!ctxt->disableSAX)) {
8688 if (ctxt->sax->cdataBlock != NULL)
8689 ctxt->sax->cdataBlock(ctxt->userData, buf, len);
8690 else if (ctxt->sax->characters != NULL)
8691 ctxt->sax->characters(ctxt->userData, buf, len);
8860 if ((ctxt->sax != NULL) && (ctxt->sax->endElementNs != NULL) &&
8862 ctxt->sax->endElementNs(ctxt->userData, name, prefix, URI);
8865 if ((ctxt->sax != NULL) && (ctxt->sax->endElement != NULL) &&
8867 ctxt->sax->endElement(ctxt->userData, name);
9435 if ((ctxt->sax) && (ctxt->sax->setDocumentLocator))
9436 ctxt->sax->setDocumentLocator(ctxt->userData, &xmlDefaultSAXLocator);
9481 if ((ctxt->sax) && (ctxt->sax->startDocument) && (!ctxt->disableSAX))
9482 ctxt->sax->startDocument(ctxt->userData);
9508 if ((ctxt->sax != NULL) && (ctxt->sax->externalSubset != NULL) &&
9510 ctxt->sax->externalSubset(ctxt->userData, ctxt->intSubName,
9547 if ((ctxt->sax) && (ctxt->sax->endDocument != NULL))
9548 ctxt->sax->endDocument(ctxt->userData);
9597 if ((ctxt->sax) && (ctxt->sax->setDocumentLocator))
9598 ctxt->sax->setDocumentLocator(ctxt->userData, &xmlDefaultSAXLocator);
9641 if ((ctxt->sax) && (ctxt->sax->startDocument) && (!ctxt->disableSAX))
9642 ctxt->sax->startDocument(ctxt->userData);
9663 if ((ctxt->sax) && (ctxt->sax->endDocument != NULL))
9664 ctxt->sax->endDocument(ctxt->userData);
10037 if ((ctxt->sax) && (ctxt->sax->setDocumentLocator))
10038 ctxt->sax->setDocumentLocator(ctxt->userData,
10046 if ((ctxt->sax) && (ctxt->sax->endDocument != NULL))
10047 ctxt->sax->endDocument(ctxt->userData);
10056 if ((ctxt->sax) && (ctxt->sax->setDocumentLocator))
10057 ctxt->sax->setDocumentLocator(ctxt->userData,
10081 if ((ctxt->sax) && (ctxt->sax->startDocument) &&
10083 ctxt->sax->startDocument(ctxt->userData);
10091 if ((ctxt->sax) && (ctxt->sax->startDocument) &&
10093 ctxt->sax->startDocument(ctxt->userData);
10101 if ((ctxt->sax) && (ctxt->sax->setDocumentLocator))
10102 ctxt->sax->setDocumentLocator(ctxt->userData,
10109 if ((ctxt->sax) && (ctxt->sax->startDocument) &&
10111 ctxt->sax->startDocument(ctxt->userData);
10131 if ((ctxt->sax) && (ctxt->sax->endDocument != NULL))
10132 ctxt->sax->endDocument(ctxt->userData);
10163 if ((ctxt->sax) && (ctxt->sax->endDocument != NULL))
10164 ctxt->sax->endDocument(ctxt->userData);
10185 if ((ctxt->sax != NULL) &&
10186 (ctxt->sax->endElementNs != NULL) &&
10188 ctxt->sax->endElementNs(ctxt->userData, name,
10194 if ((ctxt->sax != NULL) &&
10195 (ctxt->sax->endElement != NULL) &&
10197 ctxt->sax->endElement(ctxt->userData, name);
10373 if ((ctxt->sax != NULL) && (!ctxt->disableSAX)) {
10374 if (ctxt->sax->cdataBlock != NULL)
10375 ctxt->sax->cdataBlock(ctxt->userData,
10377 else if (ctxt->sax->characters != NULL)
10378 ctxt->sax->characters(ctxt->userData,
10394 if ((ctxt->sax != NULL) && (base > 0) &&
10396 if (ctxt->sax->cdataBlock != NULL)
10397 ctxt->sax->cdataBlock(ctxt->userData,
10399 else if (ctxt->sax->characters != NULL)
10400 ctxt->sax->characters(ctxt->userData,
10476 if ((ctxt->sax != NULL) && (!ctxt->disableSAX) &&
10477 (ctxt->sax->externalSubset != NULL))
10478 ctxt->sax->externalSubset(ctxt->userData,
10587 if ((ctxt->sax) && (ctxt->sax->endDocument != NULL))
10588 ctxt->sax->endDocument(ctxt->userData);
10705 if ((ctxt->sax != NULL) && (!ctxt->disableSAX) &&
10706 (ctxt->sax->externalSubset != NULL))
10707 ctxt->sax->externalSubset(ctxt->userData, ctxt->intSubName,
10906 if ((ctxt->sax) && (ctxt->sax->endDocument != NULL))
10907 ctxt->sax->endDocument(ctxt->userData);
10922 * @sax: a SAX handler
10940 xmlCreatePushParserCtxt(xmlSAXHandlerPtr sax, void *user_data,
10970 if (sax != NULL) {
10972 if (ctxt->sax != (xmlSAXHandlerPtr) &xmlDefaultSAXHandler)
10974 xmlFree(ctxt->sax);
10975 ctxt->sax = (xmlSAXHandlerPtr) xmlMalloc(sizeof(xmlSAXHandler));
10976 if (ctxt->sax == NULL) {
10982 memset(ctxt->sax, 0, sizeof(xmlSAXHandler));
10983 if (sax->initialized == XML_SAX2_MAGIC)
10984 memcpy(ctxt->sax, sax, sizeof(xmlSAXHandler));
10986 memcpy(ctxt->sax, sax, sizeof(xmlSAXHandlerV1));
11072 * @sax: a SAX handler
11085 xmlCreateIOParserCtxt(xmlSAXHandlerPtr sax, void *user_data,
11102 if (sax != NULL) {
11104 if (ctxt->sax != (xmlSAXHandlerPtr) &xmlDefaultSAXHandler)
11106 xmlFree(ctxt->sax);
11107 ctxt->sax = (xmlSAXHandlerPtr) xmlMalloc(sizeof(xmlSAXHandler));
11108 if (ctxt->sax == NULL) {
11113 memset(ctxt->sax, 0, sizeof(xmlSAXHandler));
11114 if (sax->initialized == XML_SAX2_MAGIC)
11115 memcpy(ctxt->sax, sax, sizeof(xmlSAXHandler));
11117 memcpy(ctxt->sax, sax, sizeof(xmlSAXHandlerV1));
11141 * @sax: the SAX handler block or NULL
11152 xmlIOParseDTD(xmlSAXHandlerPtr sax, xmlParserInputBufferPtr input,
11171 if (sax != NULL) {
11172 if (ctxt->sax != NULL)
11173 xmlFree(ctxt->sax);
11174 ctxt->sax = sax;
11185 if (sax != NULL) ctxt->sax = NULL;
11253 if (sax != NULL) ctxt->sax = NULL;
11261 * @sax: the SAX handler block
11271 xmlSAXParseDTD(xmlSAXHandlerPtr sax, const xmlChar *ExternalID,
11289 if (sax != NULL) {
11290 if (ctxt->sax != NULL)
11291 xmlFree(ctxt->sax);
11292 ctxt->sax = sax;
11309 if ((ctxt->sax != NULL) && (ctxt->sax->resolveEntity != NULL))
11310 input = ctxt->sax->resolveEntity(ctxt->userData, ExternalID,
11313 if (sax != NULL) ctxt->sax = NULL;
11368 if (sax != NULL) ctxt->sax = NULL;
11461 oldsax = ctxt->sax;
11462 ctxt->sax = ctx->sax;
11482 ctxt->sax = oldsax;
11588 ctxt->sax = oldsax;
11604 * @sax: the SAX handler bloc (possibly NULL)
11619 xmlSAXHandlerPtr sax,
11666 if (sax != NULL) {
11667 oldsax = ctxt->sax;
11668 ctxt->sax = sax;
11691 if (sax != NULL)
11692 ctxt->sax = oldsax;
11787 if (sax != NULL)
11788 ctxt->sax = oldsax;
11808 * @sax: the SAX handler bloc (possibly NULL)
11826 xmlParseExternalEntity(xmlDocPtr doc, xmlSAXHandlerPtr sax, void *user_data,
11828 return(xmlParseExternalEntityPrivate(doc, NULL, sax, user_data, depth, URL,
11835 * @sax: the SAX handler bloc (possibly NULL)
11853 xmlParseBalancedChunkMemory(xmlDocPtr doc, xmlSAXHandlerPtr sax,
11855 return xmlParseBalancedChunkMemoryRecover( doc, sax, user_data,
11917 oldsax = ctxt->sax;
11918 ctxt->sax = oldctxt->sax;
11927 ctxt->sax = oldsax;
11942 ctxt->sax = oldsax;
12028 ctxt->sax = oldsax;
12248 * @sax: the SAX handler bloc (possibly NULL)
12270 xmlParseBalancedChunkMemoryRecover(xmlDocPtr doc, xmlSAXHandlerPtr sax,
12295 if (sax != NULL) {
12296 oldsax = ctxt->sax;
12297 ctxt->sax = sax;
12323 if (sax != NULL)
12324 ctxt->sax = oldsax;
12396 if (sax != NULL)
12397 ctxt->sax = oldsax;
12409 * @sax: the SAX handler block
12414 * If sax is NULL, fallback to the default DOM tree building routines.
12424 xmlSAXParseEntity(xmlSAXHandlerPtr sax, const char *filename) {
12432 if (sax != NULL) {
12433 if (ctxt->sax != NULL)
12434 xmlFree(ctxt->sax);
12435 ctxt->sax = sax;
12448 if (sax != NULL)
12449 ctxt->sax = NULL;
12601 * @sax: the SAX handler block
12610 * If sax is NULL, fallback to the default DOM tree building routines.
12619 xmlSAXParseFileWithData(xmlSAXHandlerPtr sax, const char *filename,
12631 if (sax != NULL) {
12632 if (ctxt->sax != NULL)
12633 xmlFree(ctxt->sax);
12634 ctxt->sax = sax;
12664 if (sax != NULL)
12665 ctxt->sax = NULL;
12673 * @sax: the SAX handler block
12681 * If sax is NULL, fallback to the default DOM tree building routines.
12687 xmlSAXParseFile(xmlSAXHandlerPtr sax, const char *filename,
12689 return(xmlSAXParseFileWithData(sax,filename,recovery,NULL));
12777 * @sax: a SAX handler
12787 xmlSAXUserParseFile(xmlSAXHandlerPtr sax, void *user_data,
12794 if (ctxt->sax != (xmlSAXHandlerPtr) &xmlDefaultSAXHandler)
12795 xmlFree(ctxt->sax);
12796 ctxt->sax = sax;
12812 if (sax != NULL)
12813 ctxt->sax = NULL;
12881 * @sax: the SAX handler block
12889 * to handle the parsing callback. If sax is NULL, fallback to the default
12899 xmlSAXParseMemoryWithData(xmlSAXHandlerPtr sax, const char *buffer,
12906 if (sax != NULL) {
12907 if (ctxt->sax != NULL)
12908 xmlFree(ctxt->sax);
12909 ctxt->sax = sax;
12926 if (sax != NULL)
12927 ctxt->sax = NULL;
12935 * @sax: the SAX handler block
12942 * to handle the parsing callback. If sax is NULL, fallback to the default
12948 xmlSAXParseMemory(xmlSAXHandlerPtr sax, const char *buffer,
12950 return xmlSAXParseMemoryWithData(sax, buffer, size, recovery, NULL);
12984 * @sax: a SAX handler
12994 int xmlSAXUserParseMemory(xmlSAXHandlerPtr sax, void *user_data,
13001 if (ctxt->sax != (xmlSAXHandlerPtr) &xmlDefaultSAXHandler)
13002 xmlFree(ctxt->sax);
13003 ctxt->sax = sax;
13019 if (sax != NULL)
13020 ctxt->sax = NULL;
13052 * @sax: the SAX handler block
13059 * If sax is NULL, fallback to the default DOM tree building routines.
13065 xmlSAXParseDoc(xmlSAXHandlerPtr sax, const xmlChar *cur, int recovery) {
13075 if (sax != NULL) {
13076 oldsax = ctxt->sax;
13077 ctxt->sax = sax;
13089 if (sax != NULL)
13090 ctxt->sax = oldsax;
13509 ctxt->sax->ignorableWhitespace = xmlSAX2IgnorableWhitespace;
13523 ctxt->sax->warning = NULL;
13527 ctxt->sax->error = NULL;
13528 ctxt->sax->fatalError = NULL;
13533 ctxt->sax->startElement = xmlSAX2StartElement;
13534 ctxt->sax->endElement = xmlSAX2EndElement;
13535 ctxt->sax->startElementNs = NULL;
13536 ctxt->sax->endElementNs = NULL;
13537 ctxt->sax->initialized = 1;
13548 ctxt->sax->cdataBlock = NULL;