Lines Matching refs:sax
1363 if ((ctxt->sax != NULL) && (ctxt->sax->endElement != NULL)) in htmlAutoCloseOnClose()
1364 ctxt->sax->endElement(ctxt->userData, ctxt->name); in htmlAutoCloseOnClose()
1383 if ((ctxt->sax != NULL) && (ctxt->sax->endElement != NULL)) in htmlAutoCloseOnEnd()
1384 ctxt->sax->endElement(ctxt->userData, ctxt->name); in htmlAutoCloseOnEnd()
1406 if ((ctxt->sax != NULL) && (ctxt->sax->endElement != NULL)) in htmlAutoClose()
1407 ctxt->sax->endElement(ctxt->userData, ctxt->name); in htmlAutoClose()
1418 if ((ctxt->sax != NULL) && (ctxt->sax->endElement != NULL)) in htmlAutoClose()
1419 ctxt->sax->endElement(ctxt->userData, ctxt->name); in htmlAutoClose()
1497 if ((ctxt->sax != NULL) && (ctxt->sax->startElement != NULL)) in htmlCheckImplied()
1498 ctxt->sax->startElement(ctxt->userData, BAD_CAST"html", NULL); in htmlCheckImplied()
1518 if ((ctxt->sax != NULL) && (ctxt->sax->startElement != NULL)) in htmlCheckImplied()
1519 ctxt->sax->startElement(ctxt->userData, BAD_CAST"head", NULL); in htmlCheckImplied()
1537 if ((ctxt->sax != NULL) && (ctxt->sax->startElement != NULL)) in htmlCheckImplied()
1538 ctxt->sax->startElement(ctxt->userData, BAD_CAST"body", NULL); in htmlCheckImplied()
1565 if ((ctxt->sax != NULL) && (ctxt->sax->startElement != NULL)) in htmlCheckParagraph()
1566 ctxt->sax->startElement(ctxt->userData, BAD_CAST"p", NULL); in htmlCheckParagraph()
1576 if ((ctxt->sax != NULL) && (ctxt->sax->startElement != NULL)) in htmlCheckParagraph()
1577 ctxt->sax->startElement(ctxt->userData, BAD_CAST"p", NULL); in htmlCheckParagraph()
2962 if (ctxt->sax->cdataBlock!= NULL) { in htmlParseScript()
2966 ctxt->sax->cdataBlock(ctxt->userData, buf, nbchar); in htmlParseScript()
2967 } else if (ctxt->sax->characters != NULL) { in htmlParseScript()
2968 ctxt->sax->characters(ctxt->userData, buf, nbchar); in htmlParseScript()
2985 if ((nbchar != 0) && (ctxt->sax != NULL) && (!ctxt->disableSAX)) { in htmlParseScript()
2986 if (ctxt->sax->cdataBlock!= NULL) { in htmlParseScript()
2990 ctxt->sax->cdataBlock(ctxt->userData, buf, nbchar); in htmlParseScript()
2991 } else if (ctxt->sax->characters != NULL) { in htmlParseScript()
2992 ctxt->sax->characters(ctxt->userData, buf, nbchar); in htmlParseScript()
3034 if ((ctxt->sax != NULL) && (!ctxt->disableSAX)) { in htmlParseCharDataInternal()
3037 if (ctxt->sax->characters != NULL) in htmlParseCharDataInternal()
3038 ctxt->sax->characters(ctxt->userData, buf, nbchar); in htmlParseCharDataInternal()
3040 if (ctxt->sax->ignorableWhitespace != NULL) in htmlParseCharDataInternal()
3041 ctxt->sax->ignorableWhitespace(ctxt->userData, in htmlParseCharDataInternal()
3046 if (ctxt->sax->characters != NULL) in htmlParseCharDataInternal()
3047 ctxt->sax->characters(ctxt->userData, buf, nbchar); in htmlParseCharDataInternal()
3072 if ((ctxt->sax != NULL) && (!ctxt->disableSAX)) { in htmlParseCharDataInternal()
3075 if (ctxt->sax->characters != NULL) in htmlParseCharDataInternal()
3076 ctxt->sax->characters(ctxt->userData, buf, nbchar); in htmlParseCharDataInternal()
3078 if (ctxt->sax->ignorableWhitespace != NULL) in htmlParseCharDataInternal()
3079 ctxt->sax->ignorableWhitespace(ctxt->userData, in htmlParseCharDataInternal()
3084 if (ctxt->sax->characters != NULL) in htmlParseCharDataInternal()
3085 ctxt->sax->characters(ctxt->userData, buf, nbchar); in htmlParseCharDataInternal()
3209 if ((ctxt->sax) && (!ctxt->disableSAX) && in htmlParsePI()
3210 (ctxt->sax->processingInstruction != NULL)) in htmlParsePI()
3211 ctxt->sax->processingInstruction(ctxt->userData, in htmlParsePI()
3267 if ((ctxt->sax) && (!ctxt->disableSAX) && in htmlParsePI()
3268 (ctxt->sax->processingInstruction != NULL)) in htmlParsePI()
3269 ctxt->sax->processingInstruction(ctxt->userData, in htmlParsePI()
3358 if ((ctxt->sax != NULL) && (ctxt->sax->comment != NULL) && in htmlParseComment()
3360 ctxt->sax->comment(ctxt->userData, buf); in htmlParseComment()
3503 if ((ctxt->sax != NULL) && (ctxt->sax->internalSubset != NULL) && in htmlParseDocTypeDecl()
3505 ctxt->sax->internalSubset(ctxt->userData, name, ExternalID, URI); in htmlParseDocTypeDecl()
3922 if ((ctxt->sax != NULL) && (ctxt->sax->startElement != NULL)) { in htmlParseStartTag()
3924 ctxt->sax->startElement(ctxt->userData, name, atts); in htmlParseStartTag()
3926 ctxt->sax->startElement(ctxt->userData, name, NULL); in htmlParseStartTag()
4042 if ((ctxt->sax != NULL) && (ctxt->sax->endElement != NULL)) in htmlParseEndTag()
4043 ctxt->sax->endElement(ctxt->userData, name); in htmlParseEndTag()
4089 if ((ctxt->sax != NULL) && (ctxt->sax->characters != NULL)) in htmlParseReference()
4090 ctxt->sax->characters(ctxt->userData, out, i); in htmlParseReference()
4095 if ((ctxt->sax != NULL) && (ctxt->sax->characters != NULL)) in htmlParseReference()
4096 ctxt->sax->characters(ctxt->userData, BAD_CAST "&", 1); in htmlParseReference()
4101 if ((ctxt->sax != NULL) && (ctxt->sax->characters != NULL)) { in htmlParseReference()
4102 ctxt->sax->characters(ctxt->userData, BAD_CAST "&", 1); in htmlParseReference()
4103 ctxt->sax->characters(ctxt->userData, name, xmlStrlen(name)); in htmlParseReference()
4126 if ((ctxt->sax != NULL) && (ctxt->sax->characters != NULL)) in htmlParseReference()
4127 ctxt->sax->characters(ctxt->userData, out, i); in htmlParseReference()
4345 if ((ctxt->sax != NULL) && (ctxt->sax->endElement != NULL)) in htmlParseElement()
4346 ctxt->sax->endElement(ctxt->userData, name); in htmlParseElement()
4382 if ((ctxt->sax != NULL) && (ctxt->sax->endElement != NULL)) in htmlParseElement()
4383 ctxt->sax->endElement(ctxt->userData, name); in htmlParseElement()
4492 if ((ctxt->sax != NULL) && (ctxt->sax->endElement != NULL)) in htmlParseElementInternal()
4493 ctxt->sax->endElement(ctxt->userData, name); in htmlParseElementInternal()
4522 if ((ctxt->sax != NULL) && (ctxt->sax->endElement != NULL)) in htmlParseElementInternal()
4523 ctxt->sax->endElement(ctxt->userData, name); in htmlParseElementInternal()
4745 if ((ctxt->sax) && (ctxt->sax->setDocumentLocator)) in htmlParseDocument()
4746 ctxt->sax->setDocumentLocator(ctxt->userData, &xmlDefaultSAXLocator); in htmlParseDocument()
4774 if ((ctxt->sax) && (ctxt->sax->startDocument) && (!ctxt->disableSAX)) in htmlParseDocument()
4775 ctxt->sax->startDocument(ctxt->userData); in htmlParseDocument()
4829 if ((ctxt->sax) && (ctxt->sax->endDocument != NULL)) in htmlParseDocument()
4830 ctxt->sax->endDocument(ctxt->userData); in htmlParseDocument()
4863 htmlSAXHandler *sax; in htmlInitParserCtxt() local
4873 sax = (htmlSAXHandler *) xmlMalloc(sizeof(htmlSAXHandler)); in htmlInitParserCtxt()
4874 if (sax == NULL) { in htmlInitParserCtxt()
4879 memset(sax, 0, sizeof(htmlSAXHandler)); in htmlInitParserCtxt()
4938 if (sax == NULL) ctxt->sax = (xmlSAXHandlerPtr) &htmlDefaultSAXHandler; in htmlInitParserCtxt()
4940 ctxt->sax = sax; in htmlInitParserCtxt()
4941 memcpy(sax, &htmlDefaultSAXHandler, sizeof(xmlSAXHandlerV1)); in htmlInitParserCtxt()
5402 if ((ctxt->sax) && (ctxt->sax->endDocument != NULL)) in htmlParseTryOrFinish()
5403 ctxt->sax->endDocument(ctxt->userData); in htmlParseTryOrFinish()
5432 if ((ctxt->sax) && (ctxt->sax->setDocumentLocator)) in htmlParseTryOrFinish()
5433 ctxt->sax->setDocumentLocator(ctxt->userData, in htmlParseTryOrFinish()
5435 if ((ctxt->sax) && (ctxt->sax->startDocument) && in htmlParseTryOrFinish()
5437 ctxt->sax->startDocument(ctxt->userData); in htmlParseTryOrFinish()
5629 if ((ctxt->sax) && (ctxt->sax->endDocument != NULL)) in htmlParseTryOrFinish()
5630 ctxt->sax->endDocument(ctxt->userData); in htmlParseTryOrFinish()
5708 if ((ctxt->sax != NULL) && (ctxt->sax->endElement != NULL)) in htmlParseTryOrFinish()
5709 ctxt->sax->endElement(ctxt->userData, name); in htmlParseTryOrFinish()
5749 if ((ctxt->sax != NULL) && (ctxt->sax->endElement != NULL)) in htmlParseTryOrFinish()
5750 ctxt->sax->endElement(ctxt->userData, name); in htmlParseTryOrFinish()
5774 if ((ctxt->sax != NULL) && (ctxt->sax->characters != NULL)) in htmlParseTryOrFinish()
5775 ctxt->sax->characters(ctxt->userData, chr, 1); in htmlParseTryOrFinish()
5782 if (ctxt->sax != NULL) { in htmlParseTryOrFinish()
5785 if (ctxt->sax->characters != NULL) in htmlParseTryOrFinish()
5786 ctxt->sax->characters( in htmlParseTryOrFinish()
5789 if (ctxt->sax->ignorableWhitespace != NULL) in htmlParseTryOrFinish()
5790 ctxt->sax->ignorableWhitespace( in htmlParseTryOrFinish()
5795 if (ctxt->sax->characters != NULL) in htmlParseTryOrFinish()
5796 ctxt->sax->characters( in htmlParseTryOrFinish()
6073 if ((ctxt->sax) && (ctxt->sax->endDocument != NULL)) in htmlParseTryOrFinish()
6074 ctxt->sax->endDocument(ctxt->userData); in htmlParseTryOrFinish()
6162 if ((ctxt->sax) && (ctxt->sax->endDocument != NULL)) in htmlParseChunk()
6163 ctxt->sax->endDocument(ctxt->userData); in htmlParseChunk()
6192 htmlCreatePushParserCtxt(htmlSAXHandlerPtr sax, void *user_data, in htmlCreatePushParserCtxt() argument
6211 if (sax != NULL) { in htmlCreatePushParserCtxt()
6212 if (ctxt->sax != (xmlSAXHandlerPtr) &htmlDefaultSAXHandler) in htmlCreatePushParserCtxt()
6213 xmlFree(ctxt->sax); in htmlCreatePushParserCtxt()
6214 ctxt->sax = (htmlSAXHandlerPtr) xmlMalloc(sizeof(htmlSAXHandler)); in htmlCreatePushParserCtxt()
6215 if (ctxt->sax == NULL) { in htmlCreatePushParserCtxt()
6220 memcpy(ctxt->sax, sax, sizeof(htmlSAXHandler)); in htmlCreatePushParserCtxt()
6282 htmlSAXHandlerPtr sax, void *userData) { in htmlSAXParseDoc() argument
6293 if (sax != NULL) { in htmlSAXParseDoc()
6294 if (ctxt->sax != NULL) xmlFree (ctxt->sax); in htmlSAXParseDoc()
6295 ctxt->sax = sax; in htmlSAXParseDoc()
6301 if (sax != NULL) { in htmlSAXParseDoc()
6302 ctxt->sax = NULL; in htmlSAXParseDoc()
6408 htmlSAXParseFile(const char *filename, const char *encoding, htmlSAXHandlerPtr sax, in htmlSAXParseFile() argument
6418 if (sax != NULL) { in htmlSAXParseFile()
6419 oldsax = ctxt->sax; in htmlSAXParseFile()
6420 ctxt->sax = sax; in htmlSAXParseFile()
6427 if (sax != NULL) { in htmlSAXParseFile()
6428 ctxt->sax = oldsax; in htmlSAXParseFile()
6703 ctxt->sax->warning = NULL; in htmlCtxtUseOptions()
6709 ctxt->sax->error = NULL; in htmlCtxtUseOptions()
6711 ctxt->sax->fatalError = NULL; in htmlCtxtUseOptions()
6723 ctxt->sax->ignorableWhitespace = xmlSAX2IgnorableWhitespace; in htmlCtxtUseOptions()
6874 if (ctxt->sax != NULL) in htmlReadMemory()
6875 memcpy(ctxt->sax, &htmlDefaultSAXHandler, sizeof(xmlSAXHandlerV1)); in htmlReadMemory()