15#ifndef SQUID_ESILIBXML2PARSER_H
16#define SQUID_ESILIBXML2PARSER_H
18#if USE_SQUID_ESI && HAVE_LIBXML2
30#ifdef LIBXML_ATTR_ALLOC_SIZE
31#undef LIBXML_ATTR_ALLOC_SIZE
33#define LIBXML_ATTR_ALLOC_SIZE(x)
36#if HAVE_LIBXML_PARSER_H
37#include <libxml/parser.h>
39#if HAVE_LIBXML_HTMLPARSER_H
40#include <libxml/HTMLparser.h>
42#if HAVE_LIBXML_HTMLTREE_H
43#include <libxml/HTMLtree.h>
55 ~ESILibxml2Parser()
override;
57 bool parse(
char const *dataToParse,
size_t const lengthOfData,
bool const endOfStream)
override;
66 mutable xmlParserCtxtPtr parser;
virtual bool parse(char const *dataToParse, size_t const lengthOfData, bool const endOfStream)=0
virtual long int lineNumber() const =0
virtual char const * errorString() const =0
#define EsiParserDeclaration