blob: 94183fa4bc820c768068ef315eeafdd61bde5762 [file] [log] [blame]
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001<HTML
2><HEAD
3><TITLE
4>HTMLparser</TITLE
5><META
6NAME="GENERATOR"
Daniel Veillard539638b2002-07-06 19:55:14 +00007CONTENT="Modular DocBook HTML Stylesheet Version 1.76b+
Daniel Veillard60087f32001-10-10 09:45:09 +00008"><LINK
Daniel Veillard1566d3a1999-07-15 14:24:29 +00009REL="HOME"
10TITLE="Gnome XML Library Reference Manual"
11HREF="book1.html"><LINK
12REL="UP"
Daniel Veillard35008381999-10-25 13:15:52 +000013TITLE="Libxml Library Reference"
14HREF="libxml-lib.html"><LINK
Daniel Veillard1566d3a1999-07-15 14:24:29 +000015REL="PREVIOUS"
Daniel Veillard3bbbe6f2001-05-03 11:15:37 +000016TITLE="xmlerror"
17HREF="libxml-xmlerror.html"><LINK
Daniel Veillard1566d3a1999-07-15 14:24:29 +000018REL="NEXT"
19TITLE="HTMLtree"
Daniel Veillard9cb5ff42001-01-29 08:22:21 +000020HREF="libxml-htmltree.html"></HEAD
Daniel Veillard1566d3a1999-07-15 14:24:29 +000021><BODY
Daniel Veillardbed7b052001-05-19 14:59:49 +000022CLASS="REFENTRY"
Daniel Veillard1566d3a1999-07-15 14:24:29 +000023BGCOLOR="#FFFFFF"
24TEXT="#000000"
Daniel Veillard503b8932001-01-05 06:36:31 +000025LINK="#0000FF"
26VLINK="#840084"
27ALINK="#0000FF"
Daniel Veillard1566d3a1999-07-15 14:24:29 +000028><DIV
29CLASS="NAVHEADER"
30><TABLE
31WIDTH="100%"
32BORDER="0"
33BGCOLOR="#000000"
34CELLPADDING="1"
35CELLSPACING="0"
36><TR
37><TH
38COLSPAN="4"
39ALIGN="center"
40><FONT
41COLOR="#FFFFFF"
42SIZE="5"
43>Gnome XML Library Reference Manual</FONT
44></TH
45></TR
46><TR
47><TD
48WIDTH="25%"
49BGCOLOR="#C00000"
50ALIGN="left"
51><A
Daniel Veillard3bbbe6f2001-05-03 11:15:37 +000052HREF="libxml-xmlerror.html"
Daniel Veillard1566d3a1999-07-15 14:24:29 +000053><FONT
54COLOR="#FFFFFF"
55SIZE="3"
56><B
57>&#60;&#60;&#60; Previous Page</B
58></FONT
59></A
60></TD
61><TD
62WIDTH="25%"
63BGCOLOR="#0000C0"
64ALIGN="center"
65><FONT
66COLOR="#FFFFFF"
67SIZE="3"
68><B
69><A
70HREF="book1.html"
71><FONT
72COLOR="#FFFFFF"
73SIZE="3"
74><B
75>Home</B
76></FONT
77></A
78></B
79></FONT
80></TD
81><TD
82WIDTH="25%"
83BGCOLOR="#00C000"
84ALIGN="center"
85><FONT
86COLOR="#FFFFFF"
87SIZE="3"
88><B
89><A
Daniel Veillard35008381999-10-25 13:15:52 +000090HREF="libxml-lib.html"
Daniel Veillard1566d3a1999-07-15 14:24:29 +000091><FONT
92COLOR="#FFFFFF"
93SIZE="3"
94><B
95>Up</B
96></FONT
97></A
98></B
99></FONT
100></TD
101><TD
102WIDTH="25%"
103BGCOLOR="#C00000"
104ALIGN="right"
105><A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +0000106HREF="libxml-htmltree.html"
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000107><FONT
108COLOR="#FFFFFF"
109SIZE="3"
110><B
111>Next Page &#62;&#62;&#62;</B
112></FONT
113></A
114></TD
115></TR
116></TABLE
117></DIV
118><H1
Daniel Veillard503b8932001-01-05 06:36:31 +0000119><A
Daniel Veillard539638b2002-07-06 19:55:14 +0000120NAME="LIBXML-HTMLPARSER">HTMLparser</H1
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000121><DIV
122CLASS="REFNAMEDIV"
123><A
Daniel Veillard539638b2002-07-06 19:55:14 +0000124NAME="AEN11040"
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000125></A
126><H2
127>Name</H2
Daniel Veillard503b8932001-01-05 06:36:31 +0000128>HTMLparser&nbsp;--&nbsp;</DIV
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000129><DIV
130CLASS="REFSYNOPSISDIV"
131><A
Daniel Veillard539638b2002-07-06 19:55:14 +0000132NAME="AEN11043"><H2
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000133>Synopsis</H2
134><TABLE
135BORDER="0"
136BGCOLOR="#D6E8FF"
137WIDTH="100%"
138CELLPADDING="6"
139><TR
140><TD
141><PRE
142CLASS="SYNOPSIS"
143>&#13;
144
145typedef <A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +0000146HREF="libxml-htmlparser.html#HTMLPARSERCTXT"
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000147>htmlParserCtxt</A
148>;
149typedef <A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +0000150HREF="libxml-htmlparser.html#HTMLPARSERCTXTPTR"
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000151>htmlParserCtxtPtr</A
152>;
153typedef <A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +0000154HREF="libxml-htmlparser.html#HTMLPARSERNODEINFO"
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000155>htmlParserNodeInfo</A
156>;
157typedef <A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +0000158HREF="libxml-htmlparser.html#HTMLSAXHANDLER"
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000159>htmlSAXHandler</A
160>;
161typedef <A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +0000162HREF="libxml-htmlparser.html#HTMLSAXHANDLERPTR"
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000163>htmlSAXHandlerPtr</A
164>;
165typedef <A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +0000166HREF="libxml-htmlparser.html#HTMLPARSERINPUT"
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000167>htmlParserInput</A
168>;
169typedef <A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +0000170HREF="libxml-htmlparser.html#HTMLPARSERINPUTPTR"
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000171>htmlParserInputPtr</A
172>;
173typedef <A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +0000174HREF="libxml-htmlparser.html#HTMLDOCPTR"
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000175>htmlDocPtr</A
176>;
177typedef <A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +0000178HREF="libxml-htmlparser.html#HTMLNODEPTR"
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000179>htmlNodePtr</A
180>;
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000181struct <A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +0000182HREF="libxml-htmlparser.html#HTMLELEMDESC"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000183>htmlElemDesc</A
184>;
185typedef <A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +0000186HREF="libxml-htmlparser.html#HTMLELEMDESCPTR"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000187>htmlElemDescPtr</A
188>;
189struct <A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +0000190HREF="libxml-htmlparser.html#HTMLENTITYDESC"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000191>htmlEntityDesc</A
192>;
193typedef <A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +0000194HREF="libxml-htmlparser.html#HTMLENTITYDESCPTR"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000195>htmlEntityDescPtr</A
196>;
Daniel Veillardf012a642001-07-23 19:10:52 +0000197const <A
Daniel Veillarde7ead2d2001-08-22 23:44:09 +0000198HREF="libxml-htmlparser.html#HTMLELEMDESC"
199>htmlElemDesc</A
200>* <A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +0000201HREF="libxml-htmlparser.html#HTMLTAGLOOKUP"
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000202>htmlTagLookup</A
Daniel Veillarde7ead2d2001-08-22 23:44:09 +0000203> (const <A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +0000204HREF="libxml-tree.html#XMLCHAR"
Daniel Veillarddd6b3671999-09-23 22:19:22 +0000205>xmlChar</A
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000206> *tag);
Daniel Veillardf012a642001-07-23 19:10:52 +0000207const <A
Daniel Veillarde7ead2d2001-08-22 23:44:09 +0000208HREF="libxml-htmlparser.html#HTMLENTITYDESC"
209>htmlEntityDesc</A
210>* <A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +0000211HREF="libxml-htmlparser.html#HTMLENTITYLOOKUP"
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000212>htmlEntityLookup</A
Daniel Veillarde7ead2d2001-08-22 23:44:09 +0000213> (const <A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +0000214HREF="libxml-tree.html#XMLCHAR"
Daniel Veillarddd6b3671999-09-23 22:19:22 +0000215>xmlChar</A
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000216> *name);
Daniel Veillardf012a642001-07-23 19:10:52 +0000217const <A
Daniel Veillarde7ead2d2001-08-22 23:44:09 +0000218HREF="libxml-htmlparser.html#HTMLENTITYDESC"
219>htmlEntityDesc</A
220>* <A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +0000221HREF="libxml-htmlparser.html#HTMLENTITYVALUELOOKUP"
Daniel Veillard3bff2b02000-10-01 20:33:47 +0000222>htmlEntityValueLookup</A
Daniel Veillarde7ead2d2001-08-22 23:44:09 +0000223> (unsigned int value);
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000224int <A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +0000225HREF="libxml-htmlparser.html#HTMLISAUTOCLOSED"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000226>htmlIsAutoClosed</A
227> (<A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +0000228HREF="libxml-htmlparser.html#HTMLDOCPTR"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000229>htmlDocPtr</A
230> doc,
231 <A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +0000232HREF="libxml-htmlparser.html#HTMLNODEPTR"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000233>htmlNodePtr</A
234> elem);
235int <A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +0000236HREF="libxml-htmlparser.html#HTMLAUTOCLOSETAG"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000237>htmlAutoCloseTag</A
238> (<A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +0000239HREF="libxml-htmlparser.html#HTMLDOCPTR"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000240>htmlDocPtr</A
241> doc,
242 const <A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +0000243HREF="libxml-tree.html#XMLCHAR"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000244>xmlChar</A
245> *name,
246 <A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +0000247HREF="libxml-htmlparser.html#HTMLNODEPTR"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000248>htmlNodePtr</A
249> elem);
Daniel Veillarde7ead2d2001-08-22 23:44:09 +0000250const <A
251HREF="libxml-htmlparser.html#HTMLENTITYDESC"
252>htmlEntityDesc</A
253>* <A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +0000254HREF="libxml-htmlparser.html#HTMLPARSEENTITYREF"
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000255>htmlParseEntityRef</A
Daniel Veillarde7ead2d2001-08-22 23:44:09 +0000256> (<A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +0000257HREF="libxml-htmlparser.html#HTMLPARSERCTXTPTR"
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000258>htmlParserCtxtPtr</A
259> ctxt,
260 <A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +0000261HREF="libxml-tree.html#XMLCHAR"
Daniel Veillarddd6b3671999-09-23 22:19:22 +0000262>xmlChar</A
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000263> **str);
264int <A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +0000265HREF="libxml-htmlparser.html#HTMLPARSECHARREF"
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000266>htmlParseCharRef</A
267> (<A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +0000268HREF="libxml-htmlparser.html#HTMLPARSERCTXTPTR"
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000269>htmlParserCtxtPtr</A
270> ctxt);
271void <A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +0000272HREF="libxml-htmlparser.html#HTMLPARSEELEMENT"
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000273>htmlParseElement</A
274> (<A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +0000275HREF="libxml-htmlparser.html#HTMLPARSERCTXTPTR"
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000276>htmlParserCtxtPtr</A
277> ctxt);
Daniel Veillard539638b2002-07-06 19:55:14 +0000278int <A
279HREF="libxml-htmlparser.html#HTMLPARSEDOCUMENT"
280>htmlParseDocument</A
281> (<A
282HREF="libxml-htmlparser.html#HTMLPARSERCTXTPTR"
283>htmlParserCtxtPtr</A
284> ctxt);
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000285<A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +0000286HREF="libxml-htmlparser.html#HTMLDOCPTR"
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000287>htmlDocPtr</A
288> <A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +0000289HREF="libxml-htmlparser.html#HTMLSAXPARSEDOC"
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000290>htmlSAXParseDoc</A
291> (<A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +0000292HREF="libxml-tree.html#XMLCHAR"
Daniel Veillarddd6b3671999-09-23 22:19:22 +0000293>xmlChar</A
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000294> *cur,
295 const char *encoding,
296 <A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +0000297HREF="libxml-htmlparser.html#HTMLSAXHANDLERPTR"
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000298>htmlSAXHandlerPtr</A
299> sax,
300 void *userData);
301<A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +0000302HREF="libxml-htmlparser.html#HTMLDOCPTR"
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000303>htmlDocPtr</A
304> <A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +0000305HREF="libxml-htmlparser.html#HTMLPARSEDOC"
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000306>htmlParseDoc</A
307> (<A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +0000308HREF="libxml-tree.html#XMLCHAR"
Daniel Veillarddd6b3671999-09-23 22:19:22 +0000309>xmlChar</A
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000310> *cur,
311 const char *encoding);
312<A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +0000313HREF="libxml-htmlparser.html#HTMLDOCPTR"
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000314>htmlDocPtr</A
315> <A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +0000316HREF="libxml-htmlparser.html#HTMLSAXPARSEFILE"
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000317>htmlSAXParseFile</A
318> (const char *filename,
319 const char *encoding,
320 <A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +0000321HREF="libxml-htmlparser.html#HTMLSAXHANDLERPTR"
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000322>htmlSAXHandlerPtr</A
323> sax,
324 void *userData);
325<A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +0000326HREF="libxml-htmlparser.html#HTMLDOCPTR"
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000327>htmlDocPtr</A
328> <A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +0000329HREF="libxml-htmlparser.html#HTMLPARSEFILE"
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000330>htmlParseFile</A
331> (const char *filename,
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000332 const char *encoding);
Daniel Veillarde46e20d2000-07-14 15:02:46 +0000333int <A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +0000334HREF="libxml-htmlparser.html#UTF8TOHTML"
Daniel Veillarde46e20d2000-07-14 15:02:46 +0000335>UTF8ToHtml</A
336> (unsigned char *out,
337 int *outlen,
338 unsigned char *in,
339 int *inlen);
Daniel Veillard3bff2b02000-10-01 20:33:47 +0000340int <A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +0000341HREF="libxml-htmlparser.html#HTMLENCODEENTITIES"
Daniel Veillard3bff2b02000-10-01 20:33:47 +0000342>htmlEncodeEntities</A
343> (unsigned char *out,
344 int *outlen,
345 unsigned char *in,
346 int *inlen,
347 int quoteChar);
Daniel Veillard29a11cc2000-10-25 13:32:39 +0000348int <A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +0000349HREF="libxml-htmlparser.html#HTMLISSCRIPTATTRIBUTE"
Daniel Veillard29a11cc2000-10-25 13:32:39 +0000350>htmlIsScriptAttribute</A
351> (const <A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +0000352HREF="libxml-tree.html#XMLCHAR"
Daniel Veillard29a11cc2000-10-25 13:32:39 +0000353>xmlChar</A
354> *name);
Daniel Veillard503b8932001-01-05 06:36:31 +0000355int <A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +0000356HREF="libxml-htmlparser.html#HTMLHANDLEOMITTEDELEM"
Daniel Veillard503b8932001-01-05 06:36:31 +0000357>htmlHandleOmittedElem</A
358> (int val);
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000359void <A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +0000360HREF="libxml-htmlparser.html#HTMLFREEPARSERCTXT"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000361>htmlFreeParserCtxt</A
362> (<A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +0000363HREF="libxml-htmlparser.html#HTMLPARSERCTXTPTR"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000364>htmlParserCtxtPtr</A
365> ctxt);
366<A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +0000367HREF="libxml-htmlparser.html#HTMLPARSERCTXTPTR"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000368>htmlParserCtxtPtr</A
369> <A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +0000370HREF="libxml-htmlparser.html#HTMLCREATEPUSHPARSERCTXT"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000371>htmlCreatePushParserCtxt</A
372> (<A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +0000373HREF="libxml-htmlparser.html#HTMLSAXHANDLERPTR"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000374>htmlSAXHandlerPtr</A
375> sax,
376 void *user_data,
377 const char *chunk,
378 int size,
379 const char *filename,
380 <A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +0000381HREF="libxml-encoding.html#XMLCHARENCODING"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000382>xmlCharEncoding</A
383> enc);
384int <A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +0000385HREF="libxml-htmlparser.html#HTMLPARSECHUNK"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000386>htmlParseChunk</A
387> (<A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +0000388HREF="libxml-htmlparser.html#HTMLPARSERCTXTPTR"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000389>htmlParserCtxtPtr</A
390> ctxt,
391 const char *chunk,
392 int size,
393 int terminate);</PRE
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000394></TD
395></TR
396></TABLE
397></DIV
398><DIV
399CLASS="REFSECT1"
400><A
Daniel Veillard539638b2002-07-06 19:55:14 +0000401NAME="AEN11109"
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000402></A
403><H2
404>Description</H2
405><P
406></P
407></DIV
408><DIV
409CLASS="REFSECT1"
410><A
Daniel Veillard539638b2002-07-06 19:55:14 +0000411NAME="AEN11112"
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000412></A
413><H2
414>Details</H2
415><DIV
416CLASS="REFSECT2"
417><A
Daniel Veillard539638b2002-07-06 19:55:14 +0000418NAME="AEN11114"
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000419></A
420><H3
421><A
422NAME="HTMLPARSERCTXT"
423></A
Daniel Veillardaf43f632002-03-08 15:05:20 +0000424>htmlParserCtxt</H3
Daniel Veillard4b8328d2001-07-05 22:48:42 +0000425><TABLE
426BORDER="0"
427BGCOLOR="#D6E8FF"
428WIDTH="100%"
429CELLPADDING="6"
430><TR
431><TD
432><PRE
433CLASS="PROGRAMLISTING"
434>typedef xmlParserCtxt htmlParserCtxt;</PRE
435></TD
436></TR
437></TABLE
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000438><P
439></P
440></DIV
441><HR><DIV
442CLASS="REFSECT2"
443><A
Daniel Veillard539638b2002-07-06 19:55:14 +0000444NAME="AEN11119"
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000445></A
446><H3
447><A
448NAME="HTMLPARSERCTXTPTR"
449></A
Daniel Veillardaf43f632002-03-08 15:05:20 +0000450>htmlParserCtxtPtr</H3
Daniel Veillard4b8328d2001-07-05 22:48:42 +0000451><TABLE
452BORDER="0"
453BGCOLOR="#D6E8FF"
454WIDTH="100%"
455CELLPADDING="6"
456><TR
457><TD
458><PRE
459CLASS="PROGRAMLISTING"
460>typedef xmlParserCtxtPtr htmlParserCtxtPtr;</PRE
461></TD
462></TR
463></TABLE
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000464><P
465></P
466></DIV
467><HR><DIV
468CLASS="REFSECT2"
469><A
Daniel Veillard539638b2002-07-06 19:55:14 +0000470NAME="AEN11124"
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000471></A
472><H3
473><A
474NAME="HTMLPARSERNODEINFO"
475></A
Daniel Veillardaf43f632002-03-08 15:05:20 +0000476>htmlParserNodeInfo</H3
Daniel Veillard4b8328d2001-07-05 22:48:42 +0000477><TABLE
478BORDER="0"
479BGCOLOR="#D6E8FF"
480WIDTH="100%"
481CELLPADDING="6"
482><TR
483><TD
484><PRE
485CLASS="PROGRAMLISTING"
486>typedef xmlParserNodeInfo htmlParserNodeInfo;</PRE
487></TD
488></TR
489></TABLE
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000490><P
491></P
492></DIV
493><HR><DIV
494CLASS="REFSECT2"
495><A
Daniel Veillard539638b2002-07-06 19:55:14 +0000496NAME="AEN11129"
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000497></A
498><H3
499><A
500NAME="HTMLSAXHANDLER"
501></A
Daniel Veillardaf43f632002-03-08 15:05:20 +0000502>htmlSAXHandler</H3
Daniel Veillard4b8328d2001-07-05 22:48:42 +0000503><TABLE
504BORDER="0"
505BGCOLOR="#D6E8FF"
506WIDTH="100%"
507CELLPADDING="6"
508><TR
509><TD
510><PRE
511CLASS="PROGRAMLISTING"
512>typedef xmlSAXHandler htmlSAXHandler;</PRE
513></TD
514></TR
515></TABLE
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000516><P
517></P
518></DIV
519><HR><DIV
520CLASS="REFSECT2"
521><A
Daniel Veillard539638b2002-07-06 19:55:14 +0000522NAME="AEN11134"
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000523></A
524><H3
525><A
526NAME="HTMLSAXHANDLERPTR"
527></A
Daniel Veillardaf43f632002-03-08 15:05:20 +0000528>htmlSAXHandlerPtr</H3
Daniel Veillard4b8328d2001-07-05 22:48:42 +0000529><TABLE
530BORDER="0"
531BGCOLOR="#D6E8FF"
532WIDTH="100%"
533CELLPADDING="6"
534><TR
535><TD
536><PRE
537CLASS="PROGRAMLISTING"
538>typedef xmlSAXHandlerPtr htmlSAXHandlerPtr;</PRE
539></TD
540></TR
541></TABLE
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000542><P
543></P
544></DIV
545><HR><DIV
546CLASS="REFSECT2"
547><A
Daniel Veillard539638b2002-07-06 19:55:14 +0000548NAME="AEN11139"
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000549></A
550><H3
551><A
552NAME="HTMLPARSERINPUT"
553></A
Daniel Veillardaf43f632002-03-08 15:05:20 +0000554>htmlParserInput</H3
Daniel Veillard4b8328d2001-07-05 22:48:42 +0000555><TABLE
556BORDER="0"
557BGCOLOR="#D6E8FF"
558WIDTH="100%"
559CELLPADDING="6"
560><TR
561><TD
562><PRE
563CLASS="PROGRAMLISTING"
564>typedef xmlParserInput htmlParserInput;</PRE
565></TD
566></TR
567></TABLE
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000568><P
569></P
570></DIV
571><HR><DIV
572CLASS="REFSECT2"
573><A
Daniel Veillard539638b2002-07-06 19:55:14 +0000574NAME="AEN11144"
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000575></A
576><H3
577><A
578NAME="HTMLPARSERINPUTPTR"
579></A
Daniel Veillardaf43f632002-03-08 15:05:20 +0000580>htmlParserInputPtr</H3
Daniel Veillard4b8328d2001-07-05 22:48:42 +0000581><TABLE
582BORDER="0"
583BGCOLOR="#D6E8FF"
584WIDTH="100%"
585CELLPADDING="6"
586><TR
587><TD
588><PRE
589CLASS="PROGRAMLISTING"
590>typedef xmlParserInputPtr htmlParserInputPtr;</PRE
591></TD
592></TR
593></TABLE
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000594><P
595></P
596></DIV
597><HR><DIV
598CLASS="REFSECT2"
599><A
Daniel Veillard539638b2002-07-06 19:55:14 +0000600NAME="AEN11149"
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000601></A
602><H3
603><A
604NAME="HTMLDOCPTR"
605></A
Daniel Veillardaf43f632002-03-08 15:05:20 +0000606>htmlDocPtr</H3
Daniel Veillard4b8328d2001-07-05 22:48:42 +0000607><TABLE
608BORDER="0"
609BGCOLOR="#D6E8FF"
610WIDTH="100%"
611CELLPADDING="6"
612><TR
613><TD
614><PRE
615CLASS="PROGRAMLISTING"
616>typedef xmlDocPtr htmlDocPtr;</PRE
617></TD
618></TR
619></TABLE
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000620><P
621></P
622></DIV
623><HR><DIV
624CLASS="REFSECT2"
625><A
Daniel Veillard539638b2002-07-06 19:55:14 +0000626NAME="AEN11154"
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000627></A
628><H3
629><A
630NAME="HTMLNODEPTR"
631></A
Daniel Veillardaf43f632002-03-08 15:05:20 +0000632>htmlNodePtr</H3
Daniel Veillard4b8328d2001-07-05 22:48:42 +0000633><TABLE
634BORDER="0"
635BGCOLOR="#D6E8FF"
636WIDTH="100%"
637CELLPADDING="6"
638><TR
639><TD
640><PRE
641CLASS="PROGRAMLISTING"
642>typedef xmlNodePtr htmlNodePtr;</PRE
643></TD
644></TR
645></TABLE
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000646><P
647></P
648></DIV
649><HR><DIV
650CLASS="REFSECT2"
651><A
Daniel Veillard539638b2002-07-06 19:55:14 +0000652NAME="AEN11159"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000653></A
654><H3
655><A
656NAME="HTMLELEMDESC"
657></A
Daniel Veillardaf43f632002-03-08 15:05:20 +0000658>struct htmlElemDesc</H3
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000659><TABLE
660BORDER="0"
661BGCOLOR="#D6E8FF"
662WIDTH="100%"
663CELLPADDING="6"
664><TR
665><TD
666><PRE
667CLASS="PROGRAMLISTING"
668>struct htmlElemDesc {
669 const char *name; /* The tag name */
Daniel Veillard4ec885a2001-06-17 10:31:07 +0000670 char startTag; /* Whether the start tag can be implied */
671 char endTag; /* Whether the end tag can be implied */
672 char saveEndTag; /* Whether the end tag should be saved */
673 char empty; /* Is this an empty element ? */
674 char depr; /* Is this a deprecated element ? */
675 char dtd; /* 1: only in Loose DTD, 2: only Frameset one */
676 char isinline; /* is this a block 0 or inline 1 element */
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000677 const char *desc; /* the description */
678};</PRE
679></TD
680></TR
681></TABLE
682><P
683></P
684></DIV
685><HR><DIV
686CLASS="REFSECT2"
687><A
Daniel Veillard539638b2002-07-06 19:55:14 +0000688NAME="AEN11164"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000689></A
690><H3
691><A
692NAME="HTMLELEMDESCPTR"
693></A
Daniel Veillardaf43f632002-03-08 15:05:20 +0000694>htmlElemDescPtr</H3
Daniel Veillard4b8328d2001-07-05 22:48:42 +0000695><TABLE
696BORDER="0"
697BGCOLOR="#D6E8FF"
698WIDTH="100%"
699CELLPADDING="6"
700><TR
701><TD
702><PRE
703CLASS="PROGRAMLISTING"
704>typedef htmlElemDesc *htmlElemDescPtr;</PRE
705></TD
706></TR
707></TABLE
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000708><P
709></P
710></DIV
711><HR><DIV
712CLASS="REFSECT2"
713><A
Daniel Veillard539638b2002-07-06 19:55:14 +0000714NAME="AEN11169"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000715></A
716><H3
717><A
718NAME="HTMLENTITYDESC"
719></A
Daniel Veillardaf43f632002-03-08 15:05:20 +0000720>struct htmlEntityDesc</H3
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000721><TABLE
722BORDER="0"
723BGCOLOR="#D6E8FF"
724WIDTH="100%"
725CELLPADDING="6"
726><TR
727><TD
728><PRE
729CLASS="PROGRAMLISTING"
730>struct htmlEntityDesc {
Daniel Veillarda41123c2001-04-22 19:31:20 +0000731 unsigned int value; /* the UNICODE value for the character */
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000732 const char *name; /* The entity name */
733 const char *desc; /* the description */
734};</PRE
735></TD
736></TR
737></TABLE
738><P
739></P
740></DIV
741><HR><DIV
742CLASS="REFSECT2"
743><A
Daniel Veillard539638b2002-07-06 19:55:14 +0000744NAME="AEN11174"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000745></A
746><H3
747><A
748NAME="HTMLENTITYDESCPTR"
749></A
Daniel Veillardaf43f632002-03-08 15:05:20 +0000750>htmlEntityDescPtr</H3
Daniel Veillard4b8328d2001-07-05 22:48:42 +0000751><TABLE
752BORDER="0"
753BGCOLOR="#D6E8FF"
754WIDTH="100%"
755CELLPADDING="6"
756><TR
757><TD
758><PRE
759CLASS="PROGRAMLISTING"
760>typedef htmlEntityDesc *htmlEntityDescPtr;</PRE
761></TD
762></TR
763></TABLE
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000764><P
765></P
766></DIV
767><HR><DIV
768CLASS="REFSECT2"
769><A
Daniel Veillard539638b2002-07-06 19:55:14 +0000770NAME="AEN11179"
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000771></A
772><H3
773><A
774NAME="HTMLTAGLOOKUP"
775></A
Daniel Veillardaf43f632002-03-08 15:05:20 +0000776>htmlTagLookup ()</H3
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000777><TABLE
778BORDER="0"
779BGCOLOR="#D6E8FF"
780WIDTH="100%"
781CELLPADDING="6"
782><TR
783><TD
784><PRE
785CLASS="PROGRAMLISTING"
Daniel Veillardf012a642001-07-23 19:10:52 +0000786>const <A
Daniel Veillarde7ead2d2001-08-22 23:44:09 +0000787HREF="libxml-htmlparser.html#HTMLELEMDESC"
788>htmlElemDesc</A
789>* htmlTagLookup (const <A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +0000790HREF="libxml-tree.html#XMLCHAR"
Daniel Veillarddd6b3671999-09-23 22:19:22 +0000791>xmlChar</A
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000792> *tag);</PRE
793></TD
794></TR
795></TABLE
796><P
797>Lookup the HTML tag in the ElementTable</P
798><P
799></P
800><DIV
801CLASS="INFORMALTABLE"
Daniel Veillardbed7b052001-05-19 14:59:49 +0000802><A
Daniel Veillard539638b2002-07-06 19:55:14 +0000803NAME="AEN11187"><P
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000804></P
805><TABLE
806BORDER="0"
807WIDTH="100%"
808BGCOLOR="#FFD0D0"
809CELLSPACING="0"
810CELLPADDING="4"
811CLASS="CALSTABLE"
Daniel Veillardbed7b052001-05-19 14:59:49 +0000812><TBODY
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000813><TR
814><TD
815WIDTH="20%"
816ALIGN="RIGHT"
817VALIGN="TOP"
818><TT
819CLASS="PARAMETER"
820><I
821>tag</I
822></TT
Daniel Veillard3bbbe6f2001-05-03 11:15:37 +0000823>&nbsp;:</TD
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000824><TD
825WIDTH="80%"
826ALIGN="LEFT"
827VALIGN="TOP"
Daniel Veillard4b8328d2001-07-05 22:48:42 +0000828> The tag name in lowercase</TD
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000829></TR
830><TR
831><TD
832WIDTH="20%"
833ALIGN="RIGHT"
834VALIGN="TOP"
Daniel Veillard539638b2002-07-06 19:55:14 +0000835><SPAN
836CLASS="emphasis"
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000837><I
838CLASS="EMPHASIS"
839>Returns</I
Daniel Veillard539638b2002-07-06 19:55:14 +0000840></SPAN
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000841> :</TD
842><TD
843WIDTH="80%"
844ALIGN="LEFT"
845VALIGN="TOP"
Daniel Veillard4b8328d2001-07-05 22:48:42 +0000846>the related htmlElemDescPtr or NULL if not found.</TD
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000847></TR
Daniel Veillardbed7b052001-05-19 14:59:49 +0000848></TBODY
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000849></TABLE
850><P
851></P
852></DIV
853></DIV
854><HR><DIV
855CLASS="REFSECT2"
856><A
Daniel Veillard539638b2002-07-06 19:55:14 +0000857NAME="AEN11200"
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000858></A
859><H3
860><A
861NAME="HTMLENTITYLOOKUP"
862></A
Daniel Veillardaf43f632002-03-08 15:05:20 +0000863>htmlEntityLookup ()</H3
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000864><TABLE
865BORDER="0"
866BGCOLOR="#D6E8FF"
867WIDTH="100%"
868CELLPADDING="6"
869><TR
870><TD
871><PRE
872CLASS="PROGRAMLISTING"
Daniel Veillardf012a642001-07-23 19:10:52 +0000873>const <A
Daniel Veillarde7ead2d2001-08-22 23:44:09 +0000874HREF="libxml-htmlparser.html#HTMLENTITYDESC"
875>htmlEntityDesc</A
876>* htmlEntityLookup (const <A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +0000877HREF="libxml-tree.html#XMLCHAR"
Daniel Veillarddd6b3671999-09-23 22:19:22 +0000878>xmlChar</A
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000879> *name);</PRE
880></TD
881></TR
882></TABLE
883><P
884>Lookup the given entity in EntitiesTable</P
885><P
886>TODO: the linear scan is really ugly, an hash table is really needed.</P
887><P
888></P
889><DIV
890CLASS="INFORMALTABLE"
Daniel Veillardbed7b052001-05-19 14:59:49 +0000891><A
Daniel Veillard539638b2002-07-06 19:55:14 +0000892NAME="AEN11209"><P
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000893></P
894><TABLE
895BORDER="0"
896WIDTH="100%"
897BGCOLOR="#FFD0D0"
898CELLSPACING="0"
899CELLPADDING="4"
900CLASS="CALSTABLE"
Daniel Veillardbed7b052001-05-19 14:59:49 +0000901><TBODY
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000902><TR
903><TD
904WIDTH="20%"
905ALIGN="RIGHT"
906VALIGN="TOP"
907><TT
908CLASS="PARAMETER"
909><I
910>name</I
911></TT
Daniel Veillard3bbbe6f2001-05-03 11:15:37 +0000912>&nbsp;:</TD
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000913><TD
914WIDTH="80%"
915ALIGN="LEFT"
916VALIGN="TOP"
Daniel Veillard4b8328d2001-07-05 22:48:42 +0000917> the entity name</TD
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000918></TR
919><TR
920><TD
921WIDTH="20%"
922ALIGN="RIGHT"
923VALIGN="TOP"
Daniel Veillard539638b2002-07-06 19:55:14 +0000924><SPAN
925CLASS="emphasis"
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000926><I
927CLASS="EMPHASIS"
928>Returns</I
Daniel Veillard539638b2002-07-06 19:55:14 +0000929></SPAN
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000930> :</TD
931><TD
932WIDTH="80%"
933ALIGN="LEFT"
934VALIGN="TOP"
Daniel Veillard4b8328d2001-07-05 22:48:42 +0000935>the associated htmlEntityDescPtr if found, NULL otherwise.</TD
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000936></TR
Daniel Veillardbed7b052001-05-19 14:59:49 +0000937></TBODY
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000938></TABLE
939><P
940></P
941></DIV
942></DIV
943><HR><DIV
944CLASS="REFSECT2"
945><A
Daniel Veillard539638b2002-07-06 19:55:14 +0000946NAME="AEN11222"
Daniel Veillard3bff2b02000-10-01 20:33:47 +0000947></A
948><H3
949><A
950NAME="HTMLENTITYVALUELOOKUP"
951></A
Daniel Veillardaf43f632002-03-08 15:05:20 +0000952>htmlEntityValueLookup ()</H3
Daniel Veillard3bff2b02000-10-01 20:33:47 +0000953><TABLE
954BORDER="0"
955BGCOLOR="#D6E8FF"
956WIDTH="100%"
957CELLPADDING="6"
958><TR
959><TD
960><PRE
961CLASS="PROGRAMLISTING"
Daniel Veillardf012a642001-07-23 19:10:52 +0000962>const <A
Daniel Veillarde7ead2d2001-08-22 23:44:09 +0000963HREF="libxml-htmlparser.html#HTMLENTITYDESC"
964>htmlEntityDesc</A
965>* htmlEntityValueLookup (unsigned int value);</PRE
Daniel Veillard3bff2b02000-10-01 20:33:47 +0000966></TD
967></TR
968></TABLE
969><P
970>Lookup the given entity in EntitiesTable</P
971><P
972>TODO: the linear scan is really ugly, an hash table is really needed.</P
973><P
974></P
975><DIV
976CLASS="INFORMALTABLE"
Daniel Veillardbed7b052001-05-19 14:59:49 +0000977><A
Daniel Veillard539638b2002-07-06 19:55:14 +0000978NAME="AEN11230"><P
Daniel Veillard3bff2b02000-10-01 20:33:47 +0000979></P
980><TABLE
981BORDER="0"
982WIDTH="100%"
983BGCOLOR="#FFD0D0"
984CELLSPACING="0"
985CELLPADDING="4"
986CLASS="CALSTABLE"
Daniel Veillardbed7b052001-05-19 14:59:49 +0000987><TBODY
Daniel Veillard3bff2b02000-10-01 20:33:47 +0000988><TR
989><TD
990WIDTH="20%"
991ALIGN="RIGHT"
992VALIGN="TOP"
993><TT
994CLASS="PARAMETER"
995><I
996>value</I
997></TT
Daniel Veillard3bbbe6f2001-05-03 11:15:37 +0000998>&nbsp;:</TD
Daniel Veillard3bff2b02000-10-01 20:33:47 +0000999><TD
1000WIDTH="80%"
1001ALIGN="LEFT"
1002VALIGN="TOP"
Daniel Veillard4b8328d2001-07-05 22:48:42 +00001003> the entity's unicode value</TD
Daniel Veillard3bff2b02000-10-01 20:33:47 +00001004></TR
1005><TR
1006><TD
1007WIDTH="20%"
1008ALIGN="RIGHT"
1009VALIGN="TOP"
Daniel Veillard539638b2002-07-06 19:55:14 +00001010><SPAN
1011CLASS="emphasis"
Daniel Veillard3bff2b02000-10-01 20:33:47 +00001012><I
1013CLASS="EMPHASIS"
1014>Returns</I
Daniel Veillard539638b2002-07-06 19:55:14 +00001015></SPAN
Daniel Veillard3bff2b02000-10-01 20:33:47 +00001016> :</TD
1017><TD
1018WIDTH="80%"
1019ALIGN="LEFT"
1020VALIGN="TOP"
Daniel Veillard4b8328d2001-07-05 22:48:42 +00001021>the associated htmlEntityDescPtr if found, NULL otherwise.</TD
Daniel Veillard3bff2b02000-10-01 20:33:47 +00001022></TR
Daniel Veillardbed7b052001-05-19 14:59:49 +00001023></TBODY
Daniel Veillard3bff2b02000-10-01 20:33:47 +00001024></TABLE
1025><P
1026></P
1027></DIV
1028></DIV
1029><HR><DIV
1030CLASS="REFSECT2"
1031><A
Daniel Veillard539638b2002-07-06 19:55:14 +00001032NAME="AEN11243"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00001033></A
1034><H3
1035><A
1036NAME="HTMLISAUTOCLOSED"
1037></A
Daniel Veillardaf43f632002-03-08 15:05:20 +00001038>htmlIsAutoClosed ()</H3
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00001039><TABLE
1040BORDER="0"
1041BGCOLOR="#D6E8FF"
1042WIDTH="100%"
1043CELLPADDING="6"
1044><TR
1045><TD
1046><PRE
1047CLASS="PROGRAMLISTING"
1048>int htmlIsAutoClosed (<A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +00001049HREF="libxml-htmlparser.html#HTMLDOCPTR"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00001050>htmlDocPtr</A
1051> doc,
1052 <A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +00001053HREF="libxml-htmlparser.html#HTMLNODEPTR"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00001054>htmlNodePtr</A
1055> elem);</PRE
1056></TD
1057></TR
1058></TABLE
1059><P
Daniel Veillardcbaf3992001-12-31 16:16:02 +00001060>The HTML DTD allows a tag to implicitly close other tags.
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00001061The list is kept in htmlStartClose array. This function checks
1062if a tag is autoclosed by one of it's child</P
1063><P
1064></P
1065><DIV
1066CLASS="INFORMALTABLE"
Daniel Veillardbed7b052001-05-19 14:59:49 +00001067><A
Daniel Veillard539638b2002-07-06 19:55:14 +00001068NAME="AEN11251"><P
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00001069></P
1070><TABLE
1071BORDER="0"
1072WIDTH="100%"
1073BGCOLOR="#FFD0D0"
1074CELLSPACING="0"
1075CELLPADDING="4"
1076CLASS="CALSTABLE"
Daniel Veillardbed7b052001-05-19 14:59:49 +00001077><TBODY
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00001078><TR
1079><TD
1080WIDTH="20%"
1081ALIGN="RIGHT"
1082VALIGN="TOP"
1083><TT
1084CLASS="PARAMETER"
1085><I
1086>doc</I
1087></TT
Daniel Veillard3bbbe6f2001-05-03 11:15:37 +00001088>&nbsp;:</TD
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00001089><TD
1090WIDTH="80%"
1091ALIGN="LEFT"
1092VALIGN="TOP"
Daniel Veillard4b8328d2001-07-05 22:48:42 +00001093> the HTML document</TD
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00001094></TR
1095><TR
1096><TD
1097WIDTH="20%"
1098ALIGN="RIGHT"
1099VALIGN="TOP"
1100><TT
1101CLASS="PARAMETER"
1102><I
1103>elem</I
1104></TT
Daniel Veillard3bbbe6f2001-05-03 11:15:37 +00001105>&nbsp;:</TD
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00001106><TD
1107WIDTH="80%"
1108ALIGN="LEFT"
1109VALIGN="TOP"
Daniel Veillard4b8328d2001-07-05 22:48:42 +00001110> the HTML element</TD
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00001111></TR
1112><TR
1113><TD
1114WIDTH="20%"
1115ALIGN="RIGHT"
1116VALIGN="TOP"
Daniel Veillard539638b2002-07-06 19:55:14 +00001117><SPAN
1118CLASS="emphasis"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00001119><I
1120CLASS="EMPHASIS"
1121>Returns</I
Daniel Veillard539638b2002-07-06 19:55:14 +00001122></SPAN
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00001123> :</TD
1124><TD
1125WIDTH="80%"
1126ALIGN="LEFT"
1127VALIGN="TOP"
Daniel Veillard4b8328d2001-07-05 22:48:42 +00001128>1 if autoclosed, 0 otherwise</TD
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00001129></TR
Daniel Veillardbed7b052001-05-19 14:59:49 +00001130></TBODY
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00001131></TABLE
1132><P
1133></P
1134></DIV
1135></DIV
1136><HR><DIV
1137CLASS="REFSECT2"
1138><A
Daniel Veillard539638b2002-07-06 19:55:14 +00001139NAME="AEN11268"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00001140></A
1141><H3
1142><A
1143NAME="HTMLAUTOCLOSETAG"
1144></A
Daniel Veillardaf43f632002-03-08 15:05:20 +00001145>htmlAutoCloseTag ()</H3
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00001146><TABLE
1147BORDER="0"
1148BGCOLOR="#D6E8FF"
1149WIDTH="100%"
1150CELLPADDING="6"
1151><TR
1152><TD
1153><PRE
1154CLASS="PROGRAMLISTING"
1155>int htmlAutoCloseTag (<A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +00001156HREF="libxml-htmlparser.html#HTMLDOCPTR"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00001157>htmlDocPtr</A
1158> doc,
1159 const <A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +00001160HREF="libxml-tree.html#XMLCHAR"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00001161>xmlChar</A
1162> *name,
1163 <A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +00001164HREF="libxml-htmlparser.html#HTMLNODEPTR"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00001165>htmlNodePtr</A
1166> elem);</PRE
1167></TD
1168></TR
1169></TABLE
1170><P
Daniel Veillardcbaf3992001-12-31 16:16:02 +00001171>The HTML DTD allows a tag to implicitly close other tags.
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00001172The list is kept in htmlStartClose array. This function checks
1173if the element or one of it's children would autoclose the
1174given tag.</P
1175><P
1176></P
1177><DIV
1178CLASS="INFORMALTABLE"
Daniel Veillardbed7b052001-05-19 14:59:49 +00001179><A
Daniel Veillard539638b2002-07-06 19:55:14 +00001180NAME="AEN11277"><P
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00001181></P
1182><TABLE
1183BORDER="0"
1184WIDTH="100%"
1185BGCOLOR="#FFD0D0"
1186CELLSPACING="0"
1187CELLPADDING="4"
1188CLASS="CALSTABLE"
Daniel Veillardbed7b052001-05-19 14:59:49 +00001189><TBODY
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00001190><TR
1191><TD
1192WIDTH="20%"
1193ALIGN="RIGHT"
1194VALIGN="TOP"
1195><TT
1196CLASS="PARAMETER"
1197><I
1198>doc</I
1199></TT
Daniel Veillard3bbbe6f2001-05-03 11:15:37 +00001200>&nbsp;:</TD
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00001201><TD
1202WIDTH="80%"
1203ALIGN="LEFT"
1204VALIGN="TOP"
Daniel Veillard4b8328d2001-07-05 22:48:42 +00001205> the HTML document</TD
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00001206></TR
1207><TR
1208><TD
1209WIDTH="20%"
1210ALIGN="RIGHT"
1211VALIGN="TOP"
1212><TT
1213CLASS="PARAMETER"
1214><I
1215>name</I
1216></TT
Daniel Veillard3bbbe6f2001-05-03 11:15:37 +00001217>&nbsp;:</TD
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00001218><TD
1219WIDTH="80%"
1220ALIGN="LEFT"
1221VALIGN="TOP"
Daniel Veillard4b8328d2001-07-05 22:48:42 +00001222> The tag name</TD
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00001223></TR
1224><TR
1225><TD
1226WIDTH="20%"
1227ALIGN="RIGHT"
1228VALIGN="TOP"
1229><TT
1230CLASS="PARAMETER"
1231><I
1232>elem</I
1233></TT
Daniel Veillard3bbbe6f2001-05-03 11:15:37 +00001234>&nbsp;:</TD
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00001235><TD
1236WIDTH="80%"
1237ALIGN="LEFT"
1238VALIGN="TOP"
Daniel Veillard4b8328d2001-07-05 22:48:42 +00001239> the HTML element</TD
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00001240></TR
1241><TR
1242><TD
1243WIDTH="20%"
1244ALIGN="RIGHT"
1245VALIGN="TOP"
Daniel Veillard539638b2002-07-06 19:55:14 +00001246><SPAN
1247CLASS="emphasis"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00001248><I
1249CLASS="EMPHASIS"
1250>Returns</I
Daniel Veillard539638b2002-07-06 19:55:14 +00001251></SPAN
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00001252> :</TD
1253><TD
1254WIDTH="80%"
1255ALIGN="LEFT"
1256VALIGN="TOP"
Daniel Veillard4b8328d2001-07-05 22:48:42 +00001257>1 if autoclose, 0 otherwise</TD
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00001258></TR
Daniel Veillardbed7b052001-05-19 14:59:49 +00001259></TBODY
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00001260></TABLE
1261><P
1262></P
1263></DIV
1264></DIV
1265><HR><DIV
1266CLASS="REFSECT2"
1267><A
Daniel Veillard539638b2002-07-06 19:55:14 +00001268NAME="AEN11298"
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001269></A
1270><H3
1271><A
1272NAME="HTMLPARSEENTITYREF"
1273></A
Daniel Veillardaf43f632002-03-08 15:05:20 +00001274>htmlParseEntityRef ()</H3
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001275><TABLE
1276BORDER="0"
1277BGCOLOR="#D6E8FF"
1278WIDTH="100%"
1279CELLPADDING="6"
1280><TR
1281><TD
1282><PRE
1283CLASS="PROGRAMLISTING"
Daniel Veillarde7ead2d2001-08-22 23:44:09 +00001284>const <A
1285HREF="libxml-htmlparser.html#HTMLENTITYDESC"
1286>htmlEntityDesc</A
1287>* htmlParseEntityRef (<A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +00001288HREF="libxml-htmlparser.html#HTMLPARSERCTXTPTR"
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001289>htmlParserCtxtPtr</A
1290> ctxt,
1291 <A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +00001292HREF="libxml-tree.html#XMLCHAR"
Daniel Veillarddd6b3671999-09-23 22:19:22 +00001293>xmlChar</A
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001294> **str);</PRE
1295></TD
1296></TR
1297></TABLE
1298><P
1299>parse an HTML ENTITY references</P
1300><P
Daniel Veillard3bbbe6f2001-05-03 11:15:37 +00001301>[68] EntityRef ::= '&amp;' Name ';'</P
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001302><P
1303></P
1304><DIV
1305CLASS="INFORMALTABLE"
Daniel Veillardbed7b052001-05-19 14:59:49 +00001306><A
Daniel Veillard539638b2002-07-06 19:55:14 +00001307NAME="AEN11308"><P
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001308></P
1309><TABLE
1310BORDER="0"
1311WIDTH="100%"
1312BGCOLOR="#FFD0D0"
1313CELLSPACING="0"
1314CELLPADDING="4"
1315CLASS="CALSTABLE"
Daniel Veillardbed7b052001-05-19 14:59:49 +00001316><TBODY
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001317><TR
1318><TD
1319WIDTH="20%"
1320ALIGN="RIGHT"
1321VALIGN="TOP"
1322><TT
1323CLASS="PARAMETER"
1324><I
1325>ctxt</I
1326></TT
Daniel Veillard3bbbe6f2001-05-03 11:15:37 +00001327>&nbsp;:</TD
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001328><TD
1329WIDTH="80%"
1330ALIGN="LEFT"
1331VALIGN="TOP"
Daniel Veillard4b8328d2001-07-05 22:48:42 +00001332> an HTML parser context</TD
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001333></TR
1334><TR
1335><TD
1336WIDTH="20%"
1337ALIGN="RIGHT"
1338VALIGN="TOP"
1339><TT
1340CLASS="PARAMETER"
1341><I
1342>str</I
1343></TT
Daniel Veillard3bbbe6f2001-05-03 11:15:37 +00001344>&nbsp;:</TD
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001345><TD
1346WIDTH="80%"
1347ALIGN="LEFT"
1348VALIGN="TOP"
Daniel Veillard4b8328d2001-07-05 22:48:42 +00001349> location to store the entity name</TD
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001350></TR
1351><TR
1352><TD
1353WIDTH="20%"
1354ALIGN="RIGHT"
1355VALIGN="TOP"
Daniel Veillard539638b2002-07-06 19:55:14 +00001356><SPAN
1357CLASS="emphasis"
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001358><I
1359CLASS="EMPHASIS"
1360>Returns</I
Daniel Veillard539638b2002-07-06 19:55:14 +00001361></SPAN
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001362> :</TD
1363><TD
1364WIDTH="80%"
1365ALIGN="LEFT"
1366VALIGN="TOP"
Daniel Veillard4b8328d2001-07-05 22:48:42 +00001367>the associated htmlEntityDescPtr if found, or NULL otherwise,
Daniel Veillardaf43f632002-03-08 15:05:20 +00001368if non-NULL *str will have to be freed by the caller.</TD
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001369></TR
Daniel Veillardbed7b052001-05-19 14:59:49 +00001370></TBODY
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001371></TABLE
1372><P
1373></P
1374></DIV
1375></DIV
1376><HR><DIV
1377CLASS="REFSECT2"
1378><A
Daniel Veillard539638b2002-07-06 19:55:14 +00001379NAME="AEN11325"
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001380></A
1381><H3
1382><A
1383NAME="HTMLPARSECHARREF"
1384></A
Daniel Veillardaf43f632002-03-08 15:05:20 +00001385>htmlParseCharRef ()</H3
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001386><TABLE
1387BORDER="0"
1388BGCOLOR="#D6E8FF"
1389WIDTH="100%"
1390CELLPADDING="6"
1391><TR
1392><TD
1393><PRE
1394CLASS="PROGRAMLISTING"
1395>int htmlParseCharRef (<A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +00001396HREF="libxml-htmlparser.html#HTMLPARSERCTXTPTR"
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001397>htmlParserCtxtPtr</A
1398> ctxt);</PRE
1399></TD
1400></TR
1401></TABLE
1402><P
1403>parse Reference declarations</P
1404><P
Daniel Veillard3bbbe6f2001-05-03 11:15:37 +00001405>[66] CharRef ::= '&amp;#' [0-9]+ ';' |
Daniel Veillardaf43f632002-03-08 15:05:20 +00001406'&amp;<GTKDOCLINK
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001407HREF="X"
1408>x</GTKDOCLINK
1409>' [0-9a-fA-F]+ ';'</P
1410><P
1411></P
1412><DIV
1413CLASS="INFORMALTABLE"
Daniel Veillardbed7b052001-05-19 14:59:49 +00001414><A
Daniel Veillard539638b2002-07-06 19:55:14 +00001415NAME="AEN11334"><P
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001416></P
1417><TABLE
1418BORDER="0"
1419WIDTH="100%"
1420BGCOLOR="#FFD0D0"
1421CELLSPACING="0"
1422CELLPADDING="4"
1423CLASS="CALSTABLE"
Daniel Veillardbed7b052001-05-19 14:59:49 +00001424><TBODY
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001425><TR
1426><TD
1427WIDTH="20%"
1428ALIGN="RIGHT"
1429VALIGN="TOP"
1430><TT
1431CLASS="PARAMETER"
1432><I
1433>ctxt</I
1434></TT
Daniel Veillard3bbbe6f2001-05-03 11:15:37 +00001435>&nbsp;:</TD
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001436><TD
1437WIDTH="80%"
1438ALIGN="LEFT"
1439VALIGN="TOP"
Daniel Veillard4b8328d2001-07-05 22:48:42 +00001440> an HTML parser context</TD
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001441></TR
1442><TR
1443><TD
1444WIDTH="20%"
1445ALIGN="RIGHT"
1446VALIGN="TOP"
Daniel Veillard539638b2002-07-06 19:55:14 +00001447><SPAN
1448CLASS="emphasis"
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001449><I
1450CLASS="EMPHASIS"
1451>Returns</I
Daniel Veillard539638b2002-07-06 19:55:14 +00001452></SPAN
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001453> :</TD
1454><TD
1455WIDTH="80%"
1456ALIGN="LEFT"
1457VALIGN="TOP"
Daniel Veillard4b8328d2001-07-05 22:48:42 +00001458>the value parsed (as an int)</TD
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001459></TR
Daniel Veillardbed7b052001-05-19 14:59:49 +00001460></TBODY
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001461></TABLE
1462><P
1463></P
1464></DIV
1465></DIV
1466><HR><DIV
1467CLASS="REFSECT2"
1468><A
Daniel Veillard539638b2002-07-06 19:55:14 +00001469NAME="AEN11347"
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001470></A
1471><H3
1472><A
1473NAME="HTMLPARSEELEMENT"
1474></A
Daniel Veillardaf43f632002-03-08 15:05:20 +00001475>htmlParseElement ()</H3
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001476><TABLE
1477BORDER="0"
1478BGCOLOR="#D6E8FF"
1479WIDTH="100%"
1480CELLPADDING="6"
1481><TR
1482><TD
1483><PRE
1484CLASS="PROGRAMLISTING"
1485>void htmlParseElement (<A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +00001486HREF="libxml-htmlparser.html#HTMLPARSERCTXTPTR"
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001487>htmlParserCtxtPtr</A
1488> ctxt);</PRE
1489></TD
1490></TR
1491></TABLE
1492><P
1493>parse an HTML element, this is highly recursive</P
1494><P
1495>[39] element ::= EmptyElemTag | STag content ETag</P
1496><P
1497>[41] Attribute ::= Name Eq AttValue</P
1498><P
1499></P
1500><DIV
1501CLASS="INFORMALTABLE"
Daniel Veillardbed7b052001-05-19 14:59:49 +00001502><A
Daniel Veillard539638b2002-07-06 19:55:14 +00001503NAME="AEN11356"><P
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001504></P
1505><TABLE
1506BORDER="0"
1507WIDTH="100%"
1508BGCOLOR="#FFD0D0"
1509CELLSPACING="0"
1510CELLPADDING="4"
1511CLASS="CALSTABLE"
Daniel Veillardbed7b052001-05-19 14:59:49 +00001512><TBODY
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001513><TR
1514><TD
1515WIDTH="20%"
1516ALIGN="RIGHT"
1517VALIGN="TOP"
1518><TT
1519CLASS="PARAMETER"
1520><I
1521>ctxt</I
1522></TT
Daniel Veillard3bbbe6f2001-05-03 11:15:37 +00001523>&nbsp;:</TD
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001524><TD
1525WIDTH="80%"
1526ALIGN="LEFT"
1527VALIGN="TOP"
Daniel Veillard4b8328d2001-07-05 22:48:42 +00001528> an HTML parser context</TD
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001529></TR
Daniel Veillardbed7b052001-05-19 14:59:49 +00001530></TBODY
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001531></TABLE
1532><P
1533></P
1534></DIV
1535></DIV
1536><HR><DIV
1537CLASS="REFSECT2"
1538><A
Daniel Veillard539638b2002-07-06 19:55:14 +00001539NAME="AEN11365"
1540></A
1541><H3
1542><A
1543NAME="HTMLPARSEDOCUMENT"
1544></A
1545>htmlParseDocument ()</H3
1546><TABLE
1547BORDER="0"
1548BGCOLOR="#D6E8FF"
1549WIDTH="100%"
1550CELLPADDING="6"
1551><TR
1552><TD
1553><PRE
1554CLASS="PROGRAMLISTING"
1555>int htmlParseDocument (<A
1556HREF="libxml-htmlparser.html#HTMLPARSERCTXTPTR"
1557>htmlParserCtxtPtr</A
1558> ctxt);</PRE
1559></TD
1560></TR
1561></TABLE
1562><P
1563>parse an HTML document (and build a tree if using the standard SAX
1564interface).</P
1565><P
1566></P
1567><DIV
1568CLASS="INFORMALTABLE"
1569><A
1570NAME="AEN11372"><P
1571></P
1572><TABLE
1573BORDER="0"
1574WIDTH="100%"
1575BGCOLOR="#FFD0D0"
1576CELLSPACING="0"
1577CELLPADDING="4"
1578CLASS="CALSTABLE"
1579><TBODY
1580><TR
1581><TD
1582WIDTH="20%"
1583ALIGN="RIGHT"
1584VALIGN="TOP"
1585><TT
1586CLASS="PARAMETER"
1587><I
1588>ctxt</I
1589></TT
1590>&nbsp;:</TD
1591><TD
1592WIDTH="80%"
1593ALIGN="LEFT"
1594VALIGN="TOP"
1595> an HTML parser context</TD
1596></TR
1597><TR
1598><TD
1599WIDTH="20%"
1600ALIGN="RIGHT"
1601VALIGN="TOP"
1602><SPAN
1603CLASS="emphasis"
1604><I
1605CLASS="EMPHASIS"
1606>Returns</I
1607></SPAN
1608> :</TD
1609><TD
1610WIDTH="80%"
1611ALIGN="LEFT"
1612VALIGN="TOP"
1613>0, -1 in case of error. the parser context is augmented
1614as a result of the parsing.</TD
1615></TR
1616></TBODY
1617></TABLE
1618><P
1619></P
1620></DIV
1621></DIV
1622><HR><DIV
1623CLASS="REFSECT2"
1624><A
1625NAME="AEN11385"
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001626></A
1627><H3
1628><A
1629NAME="HTMLSAXPARSEDOC"
1630></A
Daniel Veillardaf43f632002-03-08 15:05:20 +00001631>htmlSAXParseDoc ()</H3
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001632><TABLE
1633BORDER="0"
1634BGCOLOR="#D6E8FF"
1635WIDTH="100%"
1636CELLPADDING="6"
1637><TR
1638><TD
1639><PRE
1640CLASS="PROGRAMLISTING"
1641><A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +00001642HREF="libxml-htmlparser.html#HTMLDOCPTR"
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001643>htmlDocPtr</A
1644> htmlSAXParseDoc (<A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +00001645HREF="libxml-tree.html#XMLCHAR"
Daniel Veillarddd6b3671999-09-23 22:19:22 +00001646>xmlChar</A
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001647> *cur,
1648 const char *encoding,
1649 <A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +00001650HREF="libxml-htmlparser.html#HTMLSAXHANDLERPTR"
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001651>htmlSAXHandlerPtr</A
1652> sax,
1653 void *userData);</PRE
1654></TD
1655></TR
1656></TABLE
1657><P
Daniel Veillard4b8328d2001-07-05 22:48:42 +00001658>Parse an HTML in-memory document. If sax is not NULL, use the SAX callbacks
1659to handle parse events. If sax is NULL, fallback to the default DOM
1660behavior and return a tree.</P
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001661><P
1662></P
1663><DIV
1664CLASS="INFORMALTABLE"
Daniel Veillardbed7b052001-05-19 14:59:49 +00001665><A
Daniel Veillard539638b2002-07-06 19:55:14 +00001666NAME="AEN11394"><P
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001667></P
1668><TABLE
1669BORDER="0"
1670WIDTH="100%"
1671BGCOLOR="#FFD0D0"
1672CELLSPACING="0"
1673CELLPADDING="4"
1674CLASS="CALSTABLE"
Daniel Veillardbed7b052001-05-19 14:59:49 +00001675><TBODY
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001676><TR
1677><TD
1678WIDTH="20%"
1679ALIGN="RIGHT"
1680VALIGN="TOP"
1681><TT
1682CLASS="PARAMETER"
1683><I
1684>cur</I
1685></TT
Daniel Veillard3bbbe6f2001-05-03 11:15:37 +00001686>&nbsp;:</TD
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001687><TD
1688WIDTH="80%"
1689ALIGN="LEFT"
1690VALIGN="TOP"
Daniel Veillard4b8328d2001-07-05 22:48:42 +00001691> a pointer to an array of xmlChar</TD
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001692></TR
1693><TR
1694><TD
1695WIDTH="20%"
1696ALIGN="RIGHT"
1697VALIGN="TOP"
1698><TT
1699CLASS="PARAMETER"
1700><I
1701>encoding</I
1702></TT
Daniel Veillard3bbbe6f2001-05-03 11:15:37 +00001703>&nbsp;:</TD
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001704><TD
1705WIDTH="80%"
1706ALIGN="LEFT"
1707VALIGN="TOP"
Daniel Veillard4b8328d2001-07-05 22:48:42 +00001708> a free form C string describing the HTML document encoding, or NULL</TD
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001709></TR
1710><TR
1711><TD
1712WIDTH="20%"
1713ALIGN="RIGHT"
1714VALIGN="TOP"
1715><TT
1716CLASS="PARAMETER"
1717><I
1718>sax</I
1719></TT
Daniel Veillard3bbbe6f2001-05-03 11:15:37 +00001720>&nbsp;:</TD
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001721><TD
1722WIDTH="80%"
1723ALIGN="LEFT"
1724VALIGN="TOP"
Daniel Veillard4b8328d2001-07-05 22:48:42 +00001725> the SAX handler block</TD
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001726></TR
1727><TR
1728><TD
1729WIDTH="20%"
1730ALIGN="RIGHT"
1731VALIGN="TOP"
1732><TT
1733CLASS="PARAMETER"
1734><I
1735>userData</I
1736></TT
Daniel Veillard3bbbe6f2001-05-03 11:15:37 +00001737>&nbsp;:</TD
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001738><TD
1739WIDTH="80%"
1740ALIGN="LEFT"
1741VALIGN="TOP"
Daniel Veillard4b8328d2001-07-05 22:48:42 +00001742> if using SAX, this pointer will be provided on callbacks. </TD
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001743></TR
1744><TR
1745><TD
1746WIDTH="20%"
1747ALIGN="RIGHT"
1748VALIGN="TOP"
Daniel Veillard539638b2002-07-06 19:55:14 +00001749><SPAN
1750CLASS="emphasis"
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001751><I
1752CLASS="EMPHASIS"
1753>Returns</I
Daniel Veillard539638b2002-07-06 19:55:14 +00001754></SPAN
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001755> :</TD
1756><TD
1757WIDTH="80%"
1758ALIGN="LEFT"
1759VALIGN="TOP"
Daniel Veillard4b8328d2001-07-05 22:48:42 +00001760>the resulting document tree unless SAX is NULL or the document is
Daniel Veillardaf43f632002-03-08 15:05:20 +00001761not well formed.</TD
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001762></TR
Daniel Veillardbed7b052001-05-19 14:59:49 +00001763></TBODY
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001764></TABLE
1765><P
1766></P
1767></DIV
1768></DIV
1769><HR><DIV
1770CLASS="REFSECT2"
1771><A
Daniel Veillard539638b2002-07-06 19:55:14 +00001772NAME="AEN11419"
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001773></A
1774><H3
1775><A
1776NAME="HTMLPARSEDOC"
1777></A
Daniel Veillardaf43f632002-03-08 15:05:20 +00001778>htmlParseDoc ()</H3
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001779><TABLE
1780BORDER="0"
1781BGCOLOR="#D6E8FF"
1782WIDTH="100%"
1783CELLPADDING="6"
1784><TR
1785><TD
1786><PRE
1787CLASS="PROGRAMLISTING"
1788><A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +00001789HREF="libxml-htmlparser.html#HTMLDOCPTR"
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001790>htmlDocPtr</A
1791> htmlParseDoc (<A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +00001792HREF="libxml-tree.html#XMLCHAR"
Daniel Veillarddd6b3671999-09-23 22:19:22 +00001793>xmlChar</A
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001794> *cur,
1795 const char *encoding);</PRE
1796></TD
1797></TR
1798></TABLE
1799><P
1800>parse an HTML in-memory document and build a tree.</P
1801><P
1802></P
1803><DIV
1804CLASS="INFORMALTABLE"
Daniel Veillardbed7b052001-05-19 14:59:49 +00001805><A
Daniel Veillard539638b2002-07-06 19:55:14 +00001806NAME="AEN11427"><P
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001807></P
1808><TABLE
1809BORDER="0"
1810WIDTH="100%"
1811BGCOLOR="#FFD0D0"
1812CELLSPACING="0"
1813CELLPADDING="4"
1814CLASS="CALSTABLE"
Daniel Veillardbed7b052001-05-19 14:59:49 +00001815><TBODY
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001816><TR
1817><TD
1818WIDTH="20%"
1819ALIGN="RIGHT"
1820VALIGN="TOP"
1821><TT
1822CLASS="PARAMETER"
1823><I
1824>cur</I
1825></TT
Daniel Veillard3bbbe6f2001-05-03 11:15:37 +00001826>&nbsp;:</TD
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001827><TD
1828WIDTH="80%"
1829ALIGN="LEFT"
1830VALIGN="TOP"
Daniel Veillard4b8328d2001-07-05 22:48:42 +00001831> a pointer to an array of xmlChar</TD
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001832></TR
1833><TR
1834><TD
1835WIDTH="20%"
1836ALIGN="RIGHT"
1837VALIGN="TOP"
1838><TT
1839CLASS="PARAMETER"
1840><I
1841>encoding</I
1842></TT
Daniel Veillard3bbbe6f2001-05-03 11:15:37 +00001843>&nbsp;:</TD
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001844><TD
1845WIDTH="80%"
1846ALIGN="LEFT"
1847VALIGN="TOP"
Daniel Veillard4b8328d2001-07-05 22:48:42 +00001848> a free form C string describing the HTML document encoding, or NULL</TD
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001849></TR
1850><TR
1851><TD
1852WIDTH="20%"
1853ALIGN="RIGHT"
1854VALIGN="TOP"
Daniel Veillard539638b2002-07-06 19:55:14 +00001855><SPAN
1856CLASS="emphasis"
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001857><I
1858CLASS="EMPHASIS"
1859>Returns</I
Daniel Veillard539638b2002-07-06 19:55:14 +00001860></SPAN
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001861> :</TD
1862><TD
1863WIDTH="80%"
1864ALIGN="LEFT"
1865VALIGN="TOP"
Daniel Veillard4b8328d2001-07-05 22:48:42 +00001866>the resulting document tree</TD
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001867></TR
Daniel Veillardbed7b052001-05-19 14:59:49 +00001868></TBODY
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001869></TABLE
1870><P
1871></P
1872></DIV
1873></DIV
1874><HR><DIV
1875CLASS="REFSECT2"
1876><A
Daniel Veillard539638b2002-07-06 19:55:14 +00001877NAME="AEN11444"
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001878></A
1879><H3
1880><A
1881NAME="HTMLSAXPARSEFILE"
1882></A
Daniel Veillardaf43f632002-03-08 15:05:20 +00001883>htmlSAXParseFile ()</H3
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001884><TABLE
1885BORDER="0"
1886BGCOLOR="#D6E8FF"
1887WIDTH="100%"
1888CELLPADDING="6"
1889><TR
1890><TD
1891><PRE
1892CLASS="PROGRAMLISTING"
1893><A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +00001894HREF="libxml-htmlparser.html#HTMLDOCPTR"
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001895>htmlDocPtr</A
1896> htmlSAXParseFile (const char *filename,
1897 const char *encoding,
1898 <A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +00001899HREF="libxml-htmlparser.html#HTMLSAXHANDLERPTR"
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001900>htmlSAXHandlerPtr</A
1901> sax,
1902 void *userData);</PRE
1903></TD
1904></TR
1905></TABLE
1906><P
1907>parse an HTML file and build a tree. Automatic support for ZLIB/Compress
1908compressed document is provided by default if found at compile-time.
1909It use the given SAX function block to handle the parsing callback.
1910If sax is NULL, fallback to the default DOM tree building routines.</P
1911><P
1912></P
1913><DIV
1914CLASS="INFORMALTABLE"
Daniel Veillardbed7b052001-05-19 14:59:49 +00001915><A
Daniel Veillard539638b2002-07-06 19:55:14 +00001916NAME="AEN11452"><P
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001917></P
1918><TABLE
1919BORDER="0"
1920WIDTH="100%"
1921BGCOLOR="#FFD0D0"
1922CELLSPACING="0"
1923CELLPADDING="4"
1924CLASS="CALSTABLE"
Daniel Veillardbed7b052001-05-19 14:59:49 +00001925><TBODY
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001926><TR
1927><TD
1928WIDTH="20%"
1929ALIGN="RIGHT"
1930VALIGN="TOP"
1931><TT
1932CLASS="PARAMETER"
1933><I
1934>filename</I
1935></TT
Daniel Veillard3bbbe6f2001-05-03 11:15:37 +00001936>&nbsp;:</TD
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001937><TD
1938WIDTH="80%"
1939ALIGN="LEFT"
1940VALIGN="TOP"
Daniel Veillard4b8328d2001-07-05 22:48:42 +00001941> the filename</TD
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001942></TR
1943><TR
1944><TD
1945WIDTH="20%"
1946ALIGN="RIGHT"
1947VALIGN="TOP"
1948><TT
1949CLASS="PARAMETER"
1950><I
1951>encoding</I
1952></TT
Daniel Veillard3bbbe6f2001-05-03 11:15:37 +00001953>&nbsp;:</TD
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001954><TD
1955WIDTH="80%"
1956ALIGN="LEFT"
1957VALIGN="TOP"
Daniel Veillard4b8328d2001-07-05 22:48:42 +00001958> a free form C string describing the HTML document encoding, or NULL</TD
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001959></TR
1960><TR
1961><TD
1962WIDTH="20%"
1963ALIGN="RIGHT"
1964VALIGN="TOP"
1965><TT
1966CLASS="PARAMETER"
1967><I
1968>sax</I
1969></TT
Daniel Veillard3bbbe6f2001-05-03 11:15:37 +00001970>&nbsp;:</TD
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001971><TD
1972WIDTH="80%"
1973ALIGN="LEFT"
1974VALIGN="TOP"
Daniel Veillard4b8328d2001-07-05 22:48:42 +00001975> the SAX handler block</TD
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001976></TR
1977><TR
1978><TD
1979WIDTH="20%"
1980ALIGN="RIGHT"
1981VALIGN="TOP"
1982><TT
1983CLASS="PARAMETER"
1984><I
1985>userData</I
1986></TT
Daniel Veillard3bbbe6f2001-05-03 11:15:37 +00001987>&nbsp;:</TD
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001988><TD
1989WIDTH="80%"
1990ALIGN="LEFT"
1991VALIGN="TOP"
Daniel Veillard4b8328d2001-07-05 22:48:42 +00001992> if using SAX, this pointer will be provided on callbacks. </TD
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001993></TR
1994><TR
1995><TD
1996WIDTH="20%"
1997ALIGN="RIGHT"
1998VALIGN="TOP"
Daniel Veillard539638b2002-07-06 19:55:14 +00001999><SPAN
2000CLASS="emphasis"
Daniel Veillard1566d3a1999-07-15 14:24:29 +00002001><I
2002CLASS="EMPHASIS"
2003>Returns</I
Daniel Veillard539638b2002-07-06 19:55:14 +00002004></SPAN
Daniel Veillard1566d3a1999-07-15 14:24:29 +00002005> :</TD
2006><TD
2007WIDTH="80%"
2008ALIGN="LEFT"
2009VALIGN="TOP"
Daniel Veillard4b8328d2001-07-05 22:48:42 +00002010>the resulting document tree unless SAX is NULL or the document is
Daniel Veillardaf43f632002-03-08 15:05:20 +00002011not well formed.</TD
Daniel Veillard1566d3a1999-07-15 14:24:29 +00002012></TR
Daniel Veillardbed7b052001-05-19 14:59:49 +00002013></TBODY
Daniel Veillard1566d3a1999-07-15 14:24:29 +00002014></TABLE
2015><P
2016></P
2017></DIV
2018></DIV
2019><HR><DIV
2020CLASS="REFSECT2"
2021><A
Daniel Veillard539638b2002-07-06 19:55:14 +00002022NAME="AEN11477"
Daniel Veillard1566d3a1999-07-15 14:24:29 +00002023></A
2024><H3
2025><A
2026NAME="HTMLPARSEFILE"
2027></A
Daniel Veillardaf43f632002-03-08 15:05:20 +00002028>htmlParseFile ()</H3
Daniel Veillard1566d3a1999-07-15 14:24:29 +00002029><TABLE
2030BORDER="0"
2031BGCOLOR="#D6E8FF"
2032WIDTH="100%"
2033CELLPADDING="6"
2034><TR
2035><TD
2036><PRE
2037CLASS="PROGRAMLISTING"
2038><A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +00002039HREF="libxml-htmlparser.html#HTMLDOCPTR"
Daniel Veillard1566d3a1999-07-15 14:24:29 +00002040>htmlDocPtr</A
2041> htmlParseFile (const char *filename,
2042 const char *encoding);</PRE
2043></TD
2044></TR
2045></TABLE
2046><P
2047>parse an HTML file and build a tree. Automatic support for ZLIB/Compress
2048compressed document is provided by default if found at compile-time.</P
2049><P
2050></P
2051><DIV
2052CLASS="INFORMALTABLE"
Daniel Veillardbed7b052001-05-19 14:59:49 +00002053><A
Daniel Veillard539638b2002-07-06 19:55:14 +00002054NAME="AEN11484"><P
Daniel Veillard1566d3a1999-07-15 14:24:29 +00002055></P
2056><TABLE
2057BORDER="0"
2058WIDTH="100%"
2059BGCOLOR="#FFD0D0"
2060CELLSPACING="0"
2061CELLPADDING="4"
2062CLASS="CALSTABLE"
Daniel Veillardbed7b052001-05-19 14:59:49 +00002063><TBODY
Daniel Veillard1566d3a1999-07-15 14:24:29 +00002064><TR
2065><TD
2066WIDTH="20%"
2067ALIGN="RIGHT"
2068VALIGN="TOP"
2069><TT
2070CLASS="PARAMETER"
2071><I
2072>filename</I
2073></TT
Daniel Veillard3bbbe6f2001-05-03 11:15:37 +00002074>&nbsp;:</TD
Daniel Veillard1566d3a1999-07-15 14:24:29 +00002075><TD
2076WIDTH="80%"
2077ALIGN="LEFT"
2078VALIGN="TOP"
Daniel Veillard4b8328d2001-07-05 22:48:42 +00002079> the filename</TD
Daniel Veillard1566d3a1999-07-15 14:24:29 +00002080></TR
2081><TR
2082><TD
2083WIDTH="20%"
2084ALIGN="RIGHT"
2085VALIGN="TOP"
2086><TT
2087CLASS="PARAMETER"
2088><I
2089>encoding</I
2090></TT
Daniel Veillard3bbbe6f2001-05-03 11:15:37 +00002091>&nbsp;:</TD
Daniel Veillard1566d3a1999-07-15 14:24:29 +00002092><TD
2093WIDTH="80%"
2094ALIGN="LEFT"
2095VALIGN="TOP"
Daniel Veillard4b8328d2001-07-05 22:48:42 +00002096> a free form C string describing the HTML document encoding, or NULL</TD
Daniel Veillard1566d3a1999-07-15 14:24:29 +00002097></TR
2098><TR
2099><TD
2100WIDTH="20%"
2101ALIGN="RIGHT"
2102VALIGN="TOP"
Daniel Veillard539638b2002-07-06 19:55:14 +00002103><SPAN
2104CLASS="emphasis"
Daniel Veillard1566d3a1999-07-15 14:24:29 +00002105><I
2106CLASS="EMPHASIS"
2107>Returns</I
Daniel Veillard539638b2002-07-06 19:55:14 +00002108></SPAN
Daniel Veillard1566d3a1999-07-15 14:24:29 +00002109> :</TD
2110><TD
2111WIDTH="80%"
2112ALIGN="LEFT"
2113VALIGN="TOP"
Daniel Veillard4b8328d2001-07-05 22:48:42 +00002114>the resulting document tree</TD
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00002115></TR
Daniel Veillardbed7b052001-05-19 14:59:49 +00002116></TBODY
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00002117></TABLE
2118><P
2119></P
2120></DIV
2121></DIV
2122><HR><DIV
2123CLASS="REFSECT2"
2124><A
Daniel Veillard539638b2002-07-06 19:55:14 +00002125NAME="AEN11501"
Daniel Veillarde46e20d2000-07-14 15:02:46 +00002126></A
2127><H3
2128><A
2129NAME="UTF8TOHTML"
2130></A
Daniel Veillardaf43f632002-03-08 15:05:20 +00002131>UTF8ToHtml ()</H3
Daniel Veillarde46e20d2000-07-14 15:02:46 +00002132><TABLE
2133BORDER="0"
2134BGCOLOR="#D6E8FF"
2135WIDTH="100%"
2136CELLPADDING="6"
2137><TR
2138><TD
2139><PRE
2140CLASS="PROGRAMLISTING"
2141>int UTF8ToHtml (unsigned char *out,
2142 int *outlen,
2143 unsigned char *in,
2144 int *inlen);</PRE
2145></TD
2146></TR
2147></TABLE
2148><P
2149>Take a block of UTF-8 chars in and try to convert it to an ASCII
2150plus HTML entities block of chars out.</P
2151><P
2152></P
2153><DIV
2154CLASS="INFORMALTABLE"
Daniel Veillardbed7b052001-05-19 14:59:49 +00002155><A
Daniel Veillard539638b2002-07-06 19:55:14 +00002156NAME="AEN11507"><P
Daniel Veillarde46e20d2000-07-14 15:02:46 +00002157></P
2158><TABLE
2159BORDER="0"
2160WIDTH="100%"
2161BGCOLOR="#FFD0D0"
2162CELLSPACING="0"
2163CELLPADDING="4"
2164CLASS="CALSTABLE"
Daniel Veillardbed7b052001-05-19 14:59:49 +00002165><TBODY
Daniel Veillarde46e20d2000-07-14 15:02:46 +00002166><TR
2167><TD
2168WIDTH="20%"
2169ALIGN="RIGHT"
2170VALIGN="TOP"
2171><TT
2172CLASS="PARAMETER"
2173><I
2174>out</I
2175></TT
Daniel Veillard3bbbe6f2001-05-03 11:15:37 +00002176>&nbsp;:</TD
Daniel Veillarde46e20d2000-07-14 15:02:46 +00002177><TD
2178WIDTH="80%"
2179ALIGN="LEFT"
2180VALIGN="TOP"
Daniel Veillard4b8328d2001-07-05 22:48:42 +00002181> a pointer to an array of bytes to store the result</TD
Daniel Veillarde46e20d2000-07-14 15:02:46 +00002182></TR
2183><TR
2184><TD
2185WIDTH="20%"
2186ALIGN="RIGHT"
2187VALIGN="TOP"
2188><TT
2189CLASS="PARAMETER"
2190><I
2191>outlen</I
2192></TT
Daniel Veillard3bbbe6f2001-05-03 11:15:37 +00002193>&nbsp;:</TD
Daniel Veillarde46e20d2000-07-14 15:02:46 +00002194><TD
2195WIDTH="80%"
2196ALIGN="LEFT"
2197VALIGN="TOP"
Daniel Veillard4b8328d2001-07-05 22:48:42 +00002198> the length of <TT
2199CLASS="PARAMETER"
2200><I
2201>out</I
2202></TT
2203></TD
Daniel Veillarde46e20d2000-07-14 15:02:46 +00002204></TR
2205><TR
2206><TD
2207WIDTH="20%"
2208ALIGN="RIGHT"
2209VALIGN="TOP"
2210><TT
2211CLASS="PARAMETER"
2212><I
2213>in</I
2214></TT
Daniel Veillard3bbbe6f2001-05-03 11:15:37 +00002215>&nbsp;:</TD
Daniel Veillarde46e20d2000-07-14 15:02:46 +00002216><TD
2217WIDTH="80%"
2218ALIGN="LEFT"
2219VALIGN="TOP"
Daniel Veillard4b8328d2001-07-05 22:48:42 +00002220> a pointer to an array of UTF-8 chars</TD
Daniel Veillarde46e20d2000-07-14 15:02:46 +00002221></TR
2222><TR
2223><TD
2224WIDTH="20%"
2225ALIGN="RIGHT"
2226VALIGN="TOP"
2227><TT
2228CLASS="PARAMETER"
2229><I
2230>inlen</I
2231></TT
Daniel Veillard3bbbe6f2001-05-03 11:15:37 +00002232>&nbsp;:</TD
Daniel Veillarde46e20d2000-07-14 15:02:46 +00002233><TD
2234WIDTH="80%"
2235ALIGN="LEFT"
2236VALIGN="TOP"
Daniel Veillard4b8328d2001-07-05 22:48:42 +00002237> the length of <TT
2238CLASS="PARAMETER"
2239><I
2240>in</I
2241></TT
2242></TD
Daniel Veillarde46e20d2000-07-14 15:02:46 +00002243></TR
2244><TR
2245><TD
2246WIDTH="20%"
2247ALIGN="RIGHT"
2248VALIGN="TOP"
Daniel Veillard539638b2002-07-06 19:55:14 +00002249><SPAN
2250CLASS="emphasis"
Daniel Veillarde46e20d2000-07-14 15:02:46 +00002251><I
2252CLASS="EMPHASIS"
2253>Returns</I
Daniel Veillard539638b2002-07-06 19:55:14 +00002254></SPAN
Daniel Veillarde46e20d2000-07-14 15:02:46 +00002255> :</TD
2256><TD
2257WIDTH="80%"
2258ALIGN="LEFT"
2259VALIGN="TOP"
Daniel Veillard4b8328d2001-07-05 22:48:42 +00002260>0 if success, -2 if the transcoding fails, or -1 otherwise
2261The value of <TT
2262CLASS="PARAMETER"
2263><I
2264>inlen</I
2265></TT
2266> after return is the number of octets consumed
Daniel Veillardaf43f632002-03-08 15:05:20 +00002267as the return value is positive, else unpredictable.
Daniel Veillard4b8328d2001-07-05 22:48:42 +00002268The value of <TT
2269CLASS="PARAMETER"
2270><I
2271>outlen</I
2272></TT
2273> after return is the number of octets consumed.</TD
Daniel Veillarde46e20d2000-07-14 15:02:46 +00002274></TR
Daniel Veillardbed7b052001-05-19 14:59:49 +00002275></TBODY
Daniel Veillarde46e20d2000-07-14 15:02:46 +00002276></TABLE
2277><P
2278></P
2279></DIV
2280></DIV
2281><HR><DIV
2282CLASS="REFSECT2"
2283><A
Daniel Veillard539638b2002-07-06 19:55:14 +00002284NAME="AEN11536"
Daniel Veillard3bff2b02000-10-01 20:33:47 +00002285></A
2286><H3
2287><A
2288NAME="HTMLENCODEENTITIES"
2289></A
Daniel Veillardaf43f632002-03-08 15:05:20 +00002290>htmlEncodeEntities ()</H3
Daniel Veillard3bff2b02000-10-01 20:33:47 +00002291><TABLE
2292BORDER="0"
2293BGCOLOR="#D6E8FF"
2294WIDTH="100%"
2295CELLPADDING="6"
2296><TR
2297><TD
2298><PRE
2299CLASS="PROGRAMLISTING"
2300>int htmlEncodeEntities (unsigned char *out,
2301 int *outlen,
2302 unsigned char *in,
2303 int *inlen,
2304 int quoteChar);</PRE
2305></TD
2306></TR
2307></TABLE
2308><P
2309>Take a block of UTF-8 chars in and try to convert it to an ASCII
2310plus HTML entities block of chars out.</P
2311><P
2312></P
2313><DIV
2314CLASS="INFORMALTABLE"
Daniel Veillardbed7b052001-05-19 14:59:49 +00002315><A
Daniel Veillard539638b2002-07-06 19:55:14 +00002316NAME="AEN11542"><P
Daniel Veillard3bff2b02000-10-01 20:33:47 +00002317></P
2318><TABLE
2319BORDER="0"
2320WIDTH="100%"
2321BGCOLOR="#FFD0D0"
2322CELLSPACING="0"
2323CELLPADDING="4"
2324CLASS="CALSTABLE"
Daniel Veillardbed7b052001-05-19 14:59:49 +00002325><TBODY
Daniel Veillard3bff2b02000-10-01 20:33:47 +00002326><TR
2327><TD
2328WIDTH="20%"
2329ALIGN="RIGHT"
2330VALIGN="TOP"
2331><TT
2332CLASS="PARAMETER"
2333><I
2334>out</I
2335></TT
Daniel Veillard3bbbe6f2001-05-03 11:15:37 +00002336>&nbsp;:</TD
Daniel Veillard3bff2b02000-10-01 20:33:47 +00002337><TD
2338WIDTH="80%"
2339ALIGN="LEFT"
2340VALIGN="TOP"
Daniel Veillard4b8328d2001-07-05 22:48:42 +00002341> a pointer to an array of bytes to store the result</TD
Daniel Veillard3bff2b02000-10-01 20:33:47 +00002342></TR
2343><TR
2344><TD
2345WIDTH="20%"
2346ALIGN="RIGHT"
2347VALIGN="TOP"
2348><TT
2349CLASS="PARAMETER"
2350><I
2351>outlen</I
2352></TT
Daniel Veillard3bbbe6f2001-05-03 11:15:37 +00002353>&nbsp;:</TD
Daniel Veillard3bff2b02000-10-01 20:33:47 +00002354><TD
2355WIDTH="80%"
2356ALIGN="LEFT"
2357VALIGN="TOP"
Daniel Veillard4b8328d2001-07-05 22:48:42 +00002358> the length of <TT
2359CLASS="PARAMETER"
2360><I
2361>out</I
2362></TT
2363></TD
Daniel Veillard3bff2b02000-10-01 20:33:47 +00002364></TR
2365><TR
2366><TD
2367WIDTH="20%"
2368ALIGN="RIGHT"
2369VALIGN="TOP"
2370><TT
2371CLASS="PARAMETER"
2372><I
2373>in</I
2374></TT
Daniel Veillard3bbbe6f2001-05-03 11:15:37 +00002375>&nbsp;:</TD
Daniel Veillard3bff2b02000-10-01 20:33:47 +00002376><TD
2377WIDTH="80%"
2378ALIGN="LEFT"
2379VALIGN="TOP"
Daniel Veillard4b8328d2001-07-05 22:48:42 +00002380> a pointer to an array of UTF-8 chars</TD
Daniel Veillard3bff2b02000-10-01 20:33:47 +00002381></TR
2382><TR
2383><TD
2384WIDTH="20%"
2385ALIGN="RIGHT"
2386VALIGN="TOP"
2387><TT
2388CLASS="PARAMETER"
2389><I
2390>inlen</I
2391></TT
Daniel Veillard3bbbe6f2001-05-03 11:15:37 +00002392>&nbsp;:</TD
Daniel Veillard3bff2b02000-10-01 20:33:47 +00002393><TD
2394WIDTH="80%"
2395ALIGN="LEFT"
2396VALIGN="TOP"
Daniel Veillard4b8328d2001-07-05 22:48:42 +00002397> the length of <TT
2398CLASS="PARAMETER"
2399><I
2400>in</I
2401></TT
2402></TD
Daniel Veillard3bff2b02000-10-01 20:33:47 +00002403></TR
2404><TR
2405><TD
2406WIDTH="20%"
2407ALIGN="RIGHT"
2408VALIGN="TOP"
2409><TT
2410CLASS="PARAMETER"
2411><I
2412>quoteChar</I
2413></TT
Daniel Veillard3bbbe6f2001-05-03 11:15:37 +00002414>&nbsp;:</TD
Daniel Veillard3bff2b02000-10-01 20:33:47 +00002415><TD
2416WIDTH="80%"
2417ALIGN="LEFT"
2418VALIGN="TOP"
Daniel Veillard4b8328d2001-07-05 22:48:42 +00002419> the quote character to escape (' or ") or zero.</TD
Daniel Veillard3bff2b02000-10-01 20:33:47 +00002420></TR
2421><TR
2422><TD
2423WIDTH="20%"
2424ALIGN="RIGHT"
2425VALIGN="TOP"
Daniel Veillard539638b2002-07-06 19:55:14 +00002426><SPAN
2427CLASS="emphasis"
Daniel Veillard3bff2b02000-10-01 20:33:47 +00002428><I
2429CLASS="EMPHASIS"
2430>Returns</I
Daniel Veillard539638b2002-07-06 19:55:14 +00002431></SPAN
Daniel Veillard3bff2b02000-10-01 20:33:47 +00002432> :</TD
2433><TD
2434WIDTH="80%"
2435ALIGN="LEFT"
2436VALIGN="TOP"
Daniel Veillard4b8328d2001-07-05 22:48:42 +00002437>0 if success, -2 if the transcoding fails, or -1 otherwise
2438The value of <TT
2439CLASS="PARAMETER"
2440><I
2441>inlen</I
2442></TT
2443> after return is the number of octets consumed
Daniel Veillardaf43f632002-03-08 15:05:20 +00002444as the return value is positive, else unpredictable.
Daniel Veillard4b8328d2001-07-05 22:48:42 +00002445The value of <TT
2446CLASS="PARAMETER"
2447><I
2448>outlen</I
2449></TT
2450> after return is the number of octets consumed.</TD
Daniel Veillard3bff2b02000-10-01 20:33:47 +00002451></TR
Daniel Veillardbed7b052001-05-19 14:59:49 +00002452></TBODY
Daniel Veillard3bff2b02000-10-01 20:33:47 +00002453></TABLE
2454><P
2455></P
2456></DIV
2457></DIV
2458><HR><DIV
2459CLASS="REFSECT2"
2460><A
Daniel Veillard539638b2002-07-06 19:55:14 +00002461NAME="AEN11575"
Daniel Veillard29a11cc2000-10-25 13:32:39 +00002462></A
2463><H3
2464><A
2465NAME="HTMLISSCRIPTATTRIBUTE"
2466></A
Daniel Veillardaf43f632002-03-08 15:05:20 +00002467>htmlIsScriptAttribute ()</H3
Daniel Veillard29a11cc2000-10-25 13:32:39 +00002468><TABLE
2469BORDER="0"
2470BGCOLOR="#D6E8FF"
2471WIDTH="100%"
2472CELLPADDING="6"
2473><TR
2474><TD
2475><PRE
2476CLASS="PROGRAMLISTING"
2477>int htmlIsScriptAttribute (const <A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +00002478HREF="libxml-tree.html#XMLCHAR"
Daniel Veillard29a11cc2000-10-25 13:32:39 +00002479>xmlChar</A
2480> *name);</PRE
2481></TD
2482></TR
2483></TABLE
2484><P
2485>Check if an attribute is of content type Script</P
2486><P
2487></P
2488><DIV
2489CLASS="INFORMALTABLE"
Daniel Veillardbed7b052001-05-19 14:59:49 +00002490><A
Daniel Veillard539638b2002-07-06 19:55:14 +00002491NAME="AEN11582"><P
Daniel Veillard29a11cc2000-10-25 13:32:39 +00002492></P
2493><TABLE
2494BORDER="0"
2495WIDTH="100%"
2496BGCOLOR="#FFD0D0"
2497CELLSPACING="0"
2498CELLPADDING="4"
2499CLASS="CALSTABLE"
Daniel Veillardbed7b052001-05-19 14:59:49 +00002500><TBODY
Daniel Veillard29a11cc2000-10-25 13:32:39 +00002501><TR
2502><TD
2503WIDTH="20%"
2504ALIGN="RIGHT"
2505VALIGN="TOP"
2506><TT
2507CLASS="PARAMETER"
2508><I
2509>name</I
2510></TT
Daniel Veillard3bbbe6f2001-05-03 11:15:37 +00002511>&nbsp;:</TD
Daniel Veillard29a11cc2000-10-25 13:32:39 +00002512><TD
2513WIDTH="80%"
2514ALIGN="LEFT"
2515VALIGN="TOP"
Daniel Veillard4b8328d2001-07-05 22:48:42 +00002516> an attribute name</TD
Daniel Veillard29a11cc2000-10-25 13:32:39 +00002517></TR
2518><TR
2519><TD
2520WIDTH="20%"
2521ALIGN="RIGHT"
2522VALIGN="TOP"
Daniel Veillard539638b2002-07-06 19:55:14 +00002523><SPAN
2524CLASS="emphasis"
Daniel Veillard29a11cc2000-10-25 13:32:39 +00002525><I
2526CLASS="EMPHASIS"
2527>Returns</I
Daniel Veillard539638b2002-07-06 19:55:14 +00002528></SPAN
Daniel Veillard29a11cc2000-10-25 13:32:39 +00002529> :</TD
2530><TD
2531WIDTH="80%"
2532ALIGN="LEFT"
2533VALIGN="TOP"
Daniel Veillard4b8328d2001-07-05 22:48:42 +00002534>1 is the attribute is a script 0 otherwise</TD
Daniel Veillard29a11cc2000-10-25 13:32:39 +00002535></TR
Daniel Veillardbed7b052001-05-19 14:59:49 +00002536></TBODY
Daniel Veillard29a11cc2000-10-25 13:32:39 +00002537></TABLE
2538><P
2539></P
2540></DIV
2541></DIV
2542><HR><DIV
2543CLASS="REFSECT2"
2544><A
Daniel Veillard539638b2002-07-06 19:55:14 +00002545NAME="AEN11595"
Daniel Veillard503b8932001-01-05 06:36:31 +00002546></A
2547><H3
2548><A
2549NAME="HTMLHANDLEOMITTEDELEM"
2550></A
Daniel Veillardaf43f632002-03-08 15:05:20 +00002551>htmlHandleOmittedElem ()</H3
Daniel Veillard503b8932001-01-05 06:36:31 +00002552><TABLE
2553BORDER="0"
2554BGCOLOR="#D6E8FF"
2555WIDTH="100%"
2556CELLPADDING="6"
2557><TR
2558><TD
2559><PRE
2560CLASS="PROGRAMLISTING"
2561>int htmlHandleOmittedElem (int val);</PRE
2562></TD
2563></TR
2564></TABLE
2565><P
2566>Set and return the previous value for handling HTML omitted tags.</P
2567><P
2568></P
2569><DIV
2570CLASS="INFORMALTABLE"
Daniel Veillardbed7b052001-05-19 14:59:49 +00002571><A
Daniel Veillard539638b2002-07-06 19:55:14 +00002572NAME="AEN11601"><P
Daniel Veillard503b8932001-01-05 06:36:31 +00002573></P
2574><TABLE
2575BORDER="0"
2576WIDTH="100%"
2577BGCOLOR="#FFD0D0"
2578CELLSPACING="0"
2579CELLPADDING="4"
2580CLASS="CALSTABLE"
Daniel Veillardbed7b052001-05-19 14:59:49 +00002581><TBODY
Daniel Veillard503b8932001-01-05 06:36:31 +00002582><TR
2583><TD
2584WIDTH="20%"
2585ALIGN="RIGHT"
2586VALIGN="TOP"
2587><TT
2588CLASS="PARAMETER"
2589><I
2590>val</I
2591></TT
Daniel Veillard3bbbe6f2001-05-03 11:15:37 +00002592>&nbsp;:</TD
Daniel Veillard503b8932001-01-05 06:36:31 +00002593><TD
2594WIDTH="80%"
2595ALIGN="LEFT"
2596VALIGN="TOP"
Daniel Veillard4b8328d2001-07-05 22:48:42 +00002597> int 0 or 1 </TD
Daniel Veillard503b8932001-01-05 06:36:31 +00002598></TR
2599><TR
2600><TD
2601WIDTH="20%"
2602ALIGN="RIGHT"
2603VALIGN="TOP"
Daniel Veillard539638b2002-07-06 19:55:14 +00002604><SPAN
2605CLASS="emphasis"
Daniel Veillard503b8932001-01-05 06:36:31 +00002606><I
2607CLASS="EMPHASIS"
2608>Returns</I
Daniel Veillard539638b2002-07-06 19:55:14 +00002609></SPAN
Daniel Veillard503b8932001-01-05 06:36:31 +00002610> :</TD
2611><TD
2612WIDTH="80%"
2613ALIGN="LEFT"
2614VALIGN="TOP"
Daniel Veillard4b8328d2001-07-05 22:48:42 +00002615>the last value for 0 for no handling, 1 for auto insertion.</TD
Daniel Veillard503b8932001-01-05 06:36:31 +00002616></TR
Daniel Veillardbed7b052001-05-19 14:59:49 +00002617></TBODY
Daniel Veillard503b8932001-01-05 06:36:31 +00002618></TABLE
2619><P
2620></P
2621></DIV
2622></DIV
2623><HR><DIV
2624CLASS="REFSECT2"
2625><A
Daniel Veillard539638b2002-07-06 19:55:14 +00002626NAME="AEN11614"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00002627></A
2628><H3
2629><A
2630NAME="HTMLFREEPARSERCTXT"
2631></A
Daniel Veillardaf43f632002-03-08 15:05:20 +00002632>htmlFreeParserCtxt ()</H3
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00002633><TABLE
2634BORDER="0"
2635BGCOLOR="#D6E8FF"
2636WIDTH="100%"
2637CELLPADDING="6"
2638><TR
2639><TD
2640><PRE
2641CLASS="PROGRAMLISTING"
2642>void htmlFreeParserCtxt (<A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +00002643HREF="libxml-htmlparser.html#HTMLPARSERCTXTPTR"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00002644>htmlParserCtxtPtr</A
2645> ctxt);</PRE
2646></TD
2647></TR
2648></TABLE
2649><P
2650>Free all the memory used by a parser context. However the parsed
Daniel Veillard3bbbe6f2001-05-03 11:15:37 +00002651document in ctxt-&gt;myDoc is not freed.</P
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00002652><P
2653></P
2654><DIV
2655CLASS="INFORMALTABLE"
Daniel Veillardbed7b052001-05-19 14:59:49 +00002656><A
Daniel Veillard539638b2002-07-06 19:55:14 +00002657NAME="AEN11621"><P
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00002658></P
2659><TABLE
2660BORDER="0"
2661WIDTH="100%"
2662BGCOLOR="#FFD0D0"
2663CELLSPACING="0"
2664CELLPADDING="4"
2665CLASS="CALSTABLE"
Daniel Veillardbed7b052001-05-19 14:59:49 +00002666><TBODY
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00002667><TR
2668><TD
2669WIDTH="20%"
2670ALIGN="RIGHT"
2671VALIGN="TOP"
2672><TT
2673CLASS="PARAMETER"
2674><I
2675>ctxt</I
2676></TT
Daniel Veillard3bbbe6f2001-05-03 11:15:37 +00002677>&nbsp;:</TD
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00002678><TD
2679WIDTH="80%"
2680ALIGN="LEFT"
2681VALIGN="TOP"
Daniel Veillard4b8328d2001-07-05 22:48:42 +00002682> an HTML parser context</TD
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00002683></TR
Daniel Veillardbed7b052001-05-19 14:59:49 +00002684></TBODY
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00002685></TABLE
2686><P
2687></P
2688></DIV
2689></DIV
2690><HR><DIV
2691CLASS="REFSECT2"
2692><A
Daniel Veillard539638b2002-07-06 19:55:14 +00002693NAME="AEN11630"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00002694></A
2695><H3
2696><A
2697NAME="HTMLCREATEPUSHPARSERCTXT"
2698></A
Daniel Veillardaf43f632002-03-08 15:05:20 +00002699>htmlCreatePushParserCtxt ()</H3
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00002700><TABLE
2701BORDER="0"
2702BGCOLOR="#D6E8FF"
2703WIDTH="100%"
2704CELLPADDING="6"
2705><TR
2706><TD
2707><PRE
2708CLASS="PROGRAMLISTING"
2709><A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +00002710HREF="libxml-htmlparser.html#HTMLPARSERCTXTPTR"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00002711>htmlParserCtxtPtr</A
2712> htmlCreatePushParserCtxt (<A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +00002713HREF="libxml-htmlparser.html#HTMLSAXHANDLERPTR"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00002714>htmlSAXHandlerPtr</A
2715> sax,
2716 void *user_data,
2717 const char *chunk,
2718 int size,
2719 const char *filename,
2720 <A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +00002721HREF="libxml-encoding.html#XMLCHARENCODING"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00002722>xmlCharEncoding</A
2723> enc);</PRE
2724></TD
2725></TR
2726></TABLE
2727><P
2728>Create a parser context for using the HTML parser in push mode
2729To allow content encoding detection, <TT
2730CLASS="PARAMETER"
2731><I
2732>size</I
2733></TT
Daniel Veillard3bbbe6f2001-05-03 11:15:37 +00002734> should be &gt;= 4
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00002735The value of <TT
2736CLASS="PARAMETER"
2737><I
2738>filename</I
2739></TT
2740> is used for fetching external entities
2741and error/warning reports.</P
2742><P
2743></P
2744><DIV
2745CLASS="INFORMALTABLE"
Daniel Veillardbed7b052001-05-19 14:59:49 +00002746><A
Daniel Veillard539638b2002-07-06 19:55:14 +00002747NAME="AEN11641"><P
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00002748></P
2749><TABLE
2750BORDER="0"
2751WIDTH="100%"
2752BGCOLOR="#FFD0D0"
2753CELLSPACING="0"
2754CELLPADDING="4"
2755CLASS="CALSTABLE"
Daniel Veillardbed7b052001-05-19 14:59:49 +00002756><TBODY
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00002757><TR
2758><TD
2759WIDTH="20%"
2760ALIGN="RIGHT"
2761VALIGN="TOP"
2762><TT
2763CLASS="PARAMETER"
2764><I
2765>sax</I
2766></TT
Daniel Veillard3bbbe6f2001-05-03 11:15:37 +00002767>&nbsp;:</TD
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00002768><TD
2769WIDTH="80%"
2770ALIGN="LEFT"
2771VALIGN="TOP"
Daniel Veillard4b8328d2001-07-05 22:48:42 +00002772> a SAX handler</TD
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00002773></TR
2774><TR
2775><TD
2776WIDTH="20%"
2777ALIGN="RIGHT"
2778VALIGN="TOP"
2779><TT
2780CLASS="PARAMETER"
2781><I
2782>user_data</I
2783></TT
Daniel Veillard3bbbe6f2001-05-03 11:15:37 +00002784>&nbsp;:</TD
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00002785><TD
2786WIDTH="80%"
2787ALIGN="LEFT"
2788VALIGN="TOP"
Daniel Veillard4b8328d2001-07-05 22:48:42 +00002789> The user data returned on SAX callbacks</TD
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00002790></TR
2791><TR
2792><TD
2793WIDTH="20%"
2794ALIGN="RIGHT"
2795VALIGN="TOP"
2796><TT
2797CLASS="PARAMETER"
2798><I
2799>chunk</I
2800></TT
Daniel Veillard3bbbe6f2001-05-03 11:15:37 +00002801>&nbsp;:</TD
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00002802><TD
2803WIDTH="80%"
2804ALIGN="LEFT"
2805VALIGN="TOP"
Daniel Veillard4b8328d2001-07-05 22:48:42 +00002806> a pointer to an array of chars</TD
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00002807></TR
2808><TR
2809><TD
2810WIDTH="20%"
2811ALIGN="RIGHT"
2812VALIGN="TOP"
2813><TT
2814CLASS="PARAMETER"
2815><I
2816>size</I
2817></TT
Daniel Veillard3bbbe6f2001-05-03 11:15:37 +00002818>&nbsp;:</TD
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00002819><TD
2820WIDTH="80%"
2821ALIGN="LEFT"
2822VALIGN="TOP"
Daniel Veillard4b8328d2001-07-05 22:48:42 +00002823> number of chars in the array</TD
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00002824></TR
2825><TR
2826><TD
2827WIDTH="20%"
2828ALIGN="RIGHT"
2829VALIGN="TOP"
2830><TT
2831CLASS="PARAMETER"
2832><I
2833>filename</I
2834></TT
Daniel Veillard3bbbe6f2001-05-03 11:15:37 +00002835>&nbsp;:</TD
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00002836><TD
2837WIDTH="80%"
2838ALIGN="LEFT"
2839VALIGN="TOP"
Daniel Veillard4b8328d2001-07-05 22:48:42 +00002840> an optional file name or URI</TD
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00002841></TR
2842><TR
2843><TD
2844WIDTH="20%"
2845ALIGN="RIGHT"
2846VALIGN="TOP"
2847><TT
2848CLASS="PARAMETER"
2849><I
2850>enc</I
2851></TT
Daniel Veillard3bbbe6f2001-05-03 11:15:37 +00002852>&nbsp;:</TD
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00002853><TD
2854WIDTH="80%"
2855ALIGN="LEFT"
2856VALIGN="TOP"
Daniel Veillard4b8328d2001-07-05 22:48:42 +00002857> an optional encoding</TD
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00002858></TR
2859><TR
2860><TD
2861WIDTH="20%"
2862ALIGN="RIGHT"
2863VALIGN="TOP"
Daniel Veillard539638b2002-07-06 19:55:14 +00002864><SPAN
2865CLASS="emphasis"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00002866><I
2867CLASS="EMPHASIS"
2868>Returns</I
Daniel Veillard539638b2002-07-06 19:55:14 +00002869></SPAN
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00002870> :</TD
2871><TD
2872WIDTH="80%"
2873ALIGN="LEFT"
2874VALIGN="TOP"
Daniel Veillard4b8328d2001-07-05 22:48:42 +00002875>the new parser context or NULL</TD
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00002876></TR
Daniel Veillardbed7b052001-05-19 14:59:49 +00002877></TBODY
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00002878></TABLE
2879><P
2880></P
2881></DIV
2882></DIV
2883><HR><DIV
2884CLASS="REFSECT2"
2885><A
Daniel Veillard539638b2002-07-06 19:55:14 +00002886NAME="AEN11674"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00002887></A
2888><H3
2889><A
2890NAME="HTMLPARSECHUNK"
2891></A
Daniel Veillardaf43f632002-03-08 15:05:20 +00002892>htmlParseChunk ()</H3
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00002893><TABLE
2894BORDER="0"
2895BGCOLOR="#D6E8FF"
2896WIDTH="100%"
2897CELLPADDING="6"
2898><TR
2899><TD
2900><PRE
2901CLASS="PROGRAMLISTING"
2902>int htmlParseChunk (<A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +00002903HREF="libxml-htmlparser.html#HTMLPARSERCTXTPTR"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00002904>htmlParserCtxtPtr</A
2905> ctxt,
2906 const char *chunk,
2907 int size,
2908 int terminate);</PRE
2909></TD
2910></TR
2911></TABLE
2912><P
2913>Parse a Chunk of memory</P
2914><P
2915></P
2916><DIV
2917CLASS="INFORMALTABLE"
Daniel Veillardbed7b052001-05-19 14:59:49 +00002918><A
Daniel Veillard539638b2002-07-06 19:55:14 +00002919NAME="AEN11681"><P
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00002920></P
2921><TABLE
2922BORDER="0"
2923WIDTH="100%"
2924BGCOLOR="#FFD0D0"
2925CELLSPACING="0"
2926CELLPADDING="4"
2927CLASS="CALSTABLE"
Daniel Veillardbed7b052001-05-19 14:59:49 +00002928><TBODY
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00002929><TR
2930><TD
2931WIDTH="20%"
2932ALIGN="RIGHT"
2933VALIGN="TOP"
2934><TT
2935CLASS="PARAMETER"
2936><I
2937>ctxt</I
2938></TT
Daniel Veillard3bbbe6f2001-05-03 11:15:37 +00002939>&nbsp;:</TD
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00002940><TD
2941WIDTH="80%"
2942ALIGN="LEFT"
2943VALIGN="TOP"
Daniel Veillard4b8328d2001-07-05 22:48:42 +00002944> an XML parser context</TD
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00002945></TR
2946><TR
2947><TD
2948WIDTH="20%"
2949ALIGN="RIGHT"
2950VALIGN="TOP"
2951><TT
2952CLASS="PARAMETER"
2953><I
2954>chunk</I
2955></TT
Daniel Veillard3bbbe6f2001-05-03 11:15:37 +00002956>&nbsp;:</TD
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00002957><TD
2958WIDTH="80%"
2959ALIGN="LEFT"
2960VALIGN="TOP"
Daniel Veillard4b8328d2001-07-05 22:48:42 +00002961> an char array</TD
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00002962></TR
2963><TR
2964><TD
2965WIDTH="20%"
2966ALIGN="RIGHT"
2967VALIGN="TOP"
2968><TT
2969CLASS="PARAMETER"
2970><I
2971>size</I
2972></TT
Daniel Veillard3bbbe6f2001-05-03 11:15:37 +00002973>&nbsp;:</TD
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00002974><TD
2975WIDTH="80%"
2976ALIGN="LEFT"
2977VALIGN="TOP"
Daniel Veillard4b8328d2001-07-05 22:48:42 +00002978> the size in byte of the chunk</TD
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00002979></TR
2980><TR
2981><TD
2982WIDTH="20%"
2983ALIGN="RIGHT"
2984VALIGN="TOP"
2985><TT
2986CLASS="PARAMETER"
2987><I
2988>terminate</I
2989></TT
Daniel Veillard3bbbe6f2001-05-03 11:15:37 +00002990>&nbsp;:</TD
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00002991><TD
2992WIDTH="80%"
2993ALIGN="LEFT"
2994VALIGN="TOP"
Daniel Veillard4b8328d2001-07-05 22:48:42 +00002995> last chunk indicator</TD
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00002996></TR
2997><TR
2998><TD
2999WIDTH="20%"
3000ALIGN="RIGHT"
3001VALIGN="TOP"
Daniel Veillard539638b2002-07-06 19:55:14 +00003002><SPAN
3003CLASS="emphasis"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00003004><I
3005CLASS="EMPHASIS"
3006>Returns</I
Daniel Veillard539638b2002-07-06 19:55:14 +00003007></SPAN
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00003008> :</TD
3009><TD
3010WIDTH="80%"
3011ALIGN="LEFT"
3012VALIGN="TOP"
Daniel Veillard4b8328d2001-07-05 22:48:42 +00003013>zero if no error, the xmlParserErrors otherwise.</TD
Daniel Veillard437b87b2000-01-03 17:30:46 +00003014></TR
Daniel Veillardbed7b052001-05-19 14:59:49 +00003015></TBODY
Daniel Veillard437b87b2000-01-03 17:30:46 +00003016></TABLE
3017><P
3018></P
3019></DIV
3020></DIV
Daniel Veillard1566d3a1999-07-15 14:24:29 +00003021></DIV
3022><DIV
3023CLASS="NAVFOOTER"
Daniel Veillard00fdf371999-10-08 09:40:39 +00003024><BR
3025CLEAR="all"><BR><TABLE
Daniel Veillard1566d3a1999-07-15 14:24:29 +00003026WIDTH="100%"
3027BORDER="0"
3028BGCOLOR="#000000"
3029CELLPADDING="1"
3030CELLSPACING="0"
3031><TR
3032><TD
3033WIDTH="25%"
3034BGCOLOR="#C00000"
3035ALIGN="left"
3036><A
Daniel Veillard3bbbe6f2001-05-03 11:15:37 +00003037HREF="libxml-xmlerror.html"
Daniel Veillard1566d3a1999-07-15 14:24:29 +00003038><FONT
3039COLOR="#FFFFFF"
3040SIZE="3"
3041><B
3042>&#60;&#60;&#60; Previous Page</B
3043></FONT
3044></A
3045></TD
3046><TD
3047WIDTH="25%"
3048BGCOLOR="#0000C0"
3049ALIGN="center"
3050><FONT
3051COLOR="#FFFFFF"
3052SIZE="3"
3053><B
3054><A
3055HREF="book1.html"
3056><FONT
3057COLOR="#FFFFFF"
3058SIZE="3"
3059><B
3060>Home</B
3061></FONT
3062></A
3063></B
3064></FONT
3065></TD
3066><TD
3067WIDTH="25%"
3068BGCOLOR="#00C000"
3069ALIGN="center"
3070><FONT
3071COLOR="#FFFFFF"
3072SIZE="3"
3073><B
3074><A
Daniel Veillard35008381999-10-25 13:15:52 +00003075HREF="libxml-lib.html"
Daniel Veillard1566d3a1999-07-15 14:24:29 +00003076><FONT
3077COLOR="#FFFFFF"
3078SIZE="3"
3079><B
3080>Up</B
3081></FONT
3082></A
3083></B
3084></FONT
3085></TD
3086><TD
3087WIDTH="25%"
3088BGCOLOR="#C00000"
3089ALIGN="right"
3090><A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +00003091HREF="libxml-htmltree.html"
Daniel Veillard1566d3a1999-07-15 14:24:29 +00003092><FONT
3093COLOR="#FFFFFF"
3094SIZE="3"
3095><B
3096>Next Page &#62;&#62;&#62;</B
3097></FONT
3098></A
3099></TD
3100></TR
3101><TR
3102><TD
3103COLSPAN="2"
3104ALIGN="left"
3105><FONT
3106COLOR="#FFFFFF"
3107SIZE="3"
3108><B
Daniel Veillard3bbbe6f2001-05-03 11:15:37 +00003109>xmlerror</B
Daniel Veillard1566d3a1999-07-15 14:24:29 +00003110></FONT
3111></TD
3112><TD
3113COLSPAN="2"
3114ALIGN="right"
3115><FONT
3116COLOR="#FFFFFF"
3117SIZE="3"
3118><B
3119>HTMLtree</B
3120></FONT
3121></TD
3122></TR
3123></TABLE
3124></DIV
3125></BODY
3126></HTML
3127>