* xmlSAX2InitHtmlDefaultSAXHandler: * @hdlr: the SAX handler * * Initialize the default HTML SAX2 handler */
| 2740 | * Initialize the default HTML SAX2 handler |
| 2741 | */ |
| 2742 | void |
| 2743 | xmlSAX2InitHtmlDefaultSAXHandler(xmlSAXHandler *hdlr) |
| 2744 | { |
| 2745 | if ((hdlr == NULL) || (hdlr->initialized != 0)) |
| 2746 | return; |
| 2747 | |
| 2748 | hdlr->internalSubset = xmlSAX2InternalSubset; |
| 2749 | hdlr->externalSubset = NULL; |
| 2750 | hdlr->isStandalone = NULL; |
| 2751 | hdlr->hasInternalSubset = NULL; |
| 2752 | hdlr->hasExternalSubset = NULL; |
| 2753 | hdlr->resolveEntity = NULL; |
| 2754 | hdlr->getEntity = xmlSAX2GetEntity; |
| 2755 | hdlr->getParameterEntity = NULL; |
| 2756 | hdlr->entityDecl = NULL; |
| 2757 | hdlr->attributeDecl = NULL; |
| 2758 | hdlr->elementDecl = NULL; |
| 2759 | hdlr->notationDecl = NULL; |
| 2760 | hdlr->unparsedEntityDecl = NULL; |
| 2761 | hdlr->setDocumentLocator = xmlSAX2SetDocumentLocator; |
| 2762 | hdlr->startDocument = xmlSAX2StartDocument; |
| 2763 | hdlr->endDocument = xmlSAX2EndDocument; |
| 2764 | hdlr->startElement = xmlSAX2StartElement; |
| 2765 | hdlr->endElement = xmlSAX2EndElement; |
| 2766 | hdlr->reference = NULL; |
| 2767 | hdlr->characters = xmlSAX2Characters; |
| 2768 | hdlr->cdataBlock = xmlSAX2CDataBlock; |
| 2769 | hdlr->ignorableWhitespace = xmlSAX2IgnorableWhitespace; |
| 2770 | hdlr->processingInstruction = xmlSAX2ProcessingInstruction; |
| 2771 | hdlr->comment = xmlSAX2Comment; |
| 2772 | hdlr->warning = xmlParserWarning; |
| 2773 | hdlr->error = xmlParserError; |
| 2774 | hdlr->fatalError = xmlParserError; |
| 2775 | |
| 2776 | hdlr->initialized = 1; |
| 2777 | } |
| 2778 | |
| 2779 | /** |
| 2780 | * htmlDefaultSAXHandlerInit: |
no outgoing calls