13 #ifndef __HTML_PARSER_H__ 14 #define __HTML_PARSER_H__ 18 #ifdef LIBXML_HTML_ENABLED 41 typedef struct _htmlElemDesc htmlElemDesc;
42 typedef htmlElemDesc *htmlElemDescPtr;
43 struct _htmlElemDesc {
65 const char* defaultsubelt;
67 const char** attrs_opt;
68 const char** attrs_depr;
69 const char** attrs_req;
75 typedef struct _htmlEntityDesc htmlEntityDesc;
76 typedef htmlEntityDesc *htmlEntityDescPtr;
77 struct _htmlEntityDesc {
91 htmlEntityValueLookup(
unsigned int value);
94 htmlIsAutoClosed(htmlDocPtr doc,
97 htmlAutoCloseTag(htmlDocPtr doc,
101 htmlParseEntityRef(htmlParserCtxtPtr ctxt,
104 htmlParseCharRef(htmlParserCtxtPtr ctxt);
106 htmlParseElement(htmlParserCtxtPtr ctxt);
109 htmlNewParserCtxt(
void);
112 htmlCreateMemoryParserCtxt(
const char *
buffer,
116 htmlParseDocument(htmlParserCtxtPtr ctxt);
120 htmlSAXHandlerPtr
sax,
126 htmlSAXParseFile(
const char *
filename,
128 htmlSAXHandlerPtr
sax,
131 htmlParseFile (
const char *
filename,
134 UTF8ToHtml (
unsigned char *
out,
136 const unsigned char *
in,
139 htmlEncodeEntities(
unsigned char *
out,
141 const unsigned char *
in,
142 int *inlen,
int quoteChar);
146 htmlHandleOmittedElem(
int val);
148 #ifdef LIBXML_PUSH_ENABLED 153 htmlCreatePushParserCtxt(htmlSAXHandlerPtr
sax,
160 htmlParseChunk (htmlParserCtxtPtr ctxt,
167 htmlFreeParserCtxt (htmlParserCtxtPtr ctxt);
179 HTML_PARSE_RECOVER = 1<<0,
180 HTML_PARSE_NODEFDTD = 1<<2,
181 HTML_PARSE_NOERROR = 1<<5,
182 HTML_PARSE_NOWARNING= 1<<6,
183 HTML_PARSE_PEDANTIC = 1<<7,
184 HTML_PARSE_NOBLANKS = 1<<8,
185 HTML_PARSE_NONET = 1<<11,
186 HTML_PARSE_NOIMPLIED= 1<<13,
187 HTML_PARSE_COMPACT = 1<<16,
188 HTML_PARSE_IGNORE_ENC=1<<21
192 htmlCtxtReset (htmlParserCtxtPtr ctxt);
194 htmlCtxtUseOptions (htmlParserCtxtPtr ctxt,
202 htmlReadFile (
const char *URL,
206 htmlReadMemory (
const char *
buffer,
261 HTML_DEPRECATED = 0x2 ,
271 XMLPUBFUN htmlStatus
XMLCALL htmlElementStatusHere(
const htmlElemDesc*,
const htmlElemDesc*) ;
279 #define htmlDefaultSubelement(elt) elt->defaultsubelt 290 #define htmlElementAllowedHereDesc(parent,elt) \ 291 htmlElementAllowedHere((parent), (elt)->name) 298 #define htmlRequiredAttrs(elt) (elt)->attrs_req
static const WCHAR desc[]
int(XMLCALL * xmlInputCloseCallback)(void *context)
void MSVCRT() terminate()
int(XMLCALL * xmlInputReadCallback)(void *context, char *buffer, int len)
GLsizei const GLfloat * value
GLuint const GLchar * name