blob: 9b315fb976a78223bcc0a1ce3c16db5c7296d35d [file] [log] [blame]
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001<HTML
2><HEAD
3><TITLE
4>HTMLparser</TITLE
5><META
6NAME="GENERATOR"
Daniel Veillardbed7b052001-05-19 14:59:49 +00007CONTENT="Modular DocBook HTML Stylesheet Version 1.59"><LINK
Daniel Veillard1566d3a1999-07-15 14:24:29 +00008REL="HOME"
9TITLE="Gnome XML Library Reference Manual"
10HREF="book1.html"><LINK
11REL="UP"
Daniel Veillard35008381999-10-25 13:15:52 +000012TITLE="Libxml Library Reference"
13HREF="libxml-lib.html"><LINK
Daniel Veillard1566d3a1999-07-15 14:24:29 +000014REL="PREVIOUS"
Daniel Veillard3bbbe6f2001-05-03 11:15:37 +000015TITLE="xmlerror"
16HREF="libxml-xmlerror.html"><LINK
Daniel Veillard1566d3a1999-07-15 14:24:29 +000017REL="NEXT"
18TITLE="HTMLtree"
Daniel Veillard9cb5ff42001-01-29 08:22:21 +000019HREF="libxml-htmltree.html"></HEAD
Daniel Veillard1566d3a1999-07-15 14:24:29 +000020><BODY
Daniel Veillardbed7b052001-05-19 14:59:49 +000021CLASS="REFENTRY"
Daniel Veillard1566d3a1999-07-15 14:24:29 +000022BGCOLOR="#FFFFFF"
23TEXT="#000000"
Daniel Veillard503b8932001-01-05 06:36:31 +000024LINK="#0000FF"
25VLINK="#840084"
26ALINK="#0000FF"
Daniel Veillard1566d3a1999-07-15 14:24:29 +000027><DIV
28CLASS="NAVHEADER"
29><TABLE
30WIDTH="100%"
31BORDER="0"
32BGCOLOR="#000000"
33CELLPADDING="1"
34CELLSPACING="0"
35><TR
36><TH
37COLSPAN="4"
38ALIGN="center"
39><FONT
40COLOR="#FFFFFF"
41SIZE="5"
42>Gnome XML Library Reference Manual</FONT
43></TH
44></TR
45><TR
46><TD
47WIDTH="25%"
48BGCOLOR="#C00000"
49ALIGN="left"
50><A
Daniel Veillard3bbbe6f2001-05-03 11:15:37 +000051HREF="libxml-xmlerror.html"
Daniel Veillard1566d3a1999-07-15 14:24:29 +000052><FONT
53COLOR="#FFFFFF"
54SIZE="3"
55><B
56>&#60;&#60;&#60; Previous Page</B
57></FONT
58></A
59></TD
60><TD
61WIDTH="25%"
62BGCOLOR="#0000C0"
63ALIGN="center"
64><FONT
65COLOR="#FFFFFF"
66SIZE="3"
67><B
68><A
69HREF="book1.html"
70><FONT
71COLOR="#FFFFFF"
72SIZE="3"
73><B
74>Home</B
75></FONT
76></A
77></B
78></FONT
79></TD
80><TD
81WIDTH="25%"
82BGCOLOR="#00C000"
83ALIGN="center"
84><FONT
85COLOR="#FFFFFF"
86SIZE="3"
87><B
88><A
Daniel Veillard35008381999-10-25 13:15:52 +000089HREF="libxml-lib.html"
Daniel Veillard1566d3a1999-07-15 14:24:29 +000090><FONT
91COLOR="#FFFFFF"
92SIZE="3"
93><B
94>Up</B
95></FONT
96></A
97></B
98></FONT
99></TD
100><TD
101WIDTH="25%"
102BGCOLOR="#C00000"
103ALIGN="right"
104><A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +0000105HREF="libxml-htmltree.html"
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000106><FONT
107COLOR="#FFFFFF"
108SIZE="3"
109><B
110>Next Page &#62;&#62;&#62;</B
111></FONT
112></A
113></TD
114></TR
115></TABLE
116></DIV
117><H1
Daniel Veillard503b8932001-01-05 06:36:31 +0000118><A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +0000119NAME="LIBXML-HTMLPARSER"
Daniel Veillard503b8932001-01-05 06:36:31 +0000120>HTMLparser</A
121></H1
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000122><DIV
123CLASS="REFNAMEDIV"
124><A
Daniel Veillardf012a642001-07-23 19:10:52 +0000125NAME="AEN10190"
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000126></A
127><H2
128>Name</H2
Daniel Veillard503b8932001-01-05 06:36:31 +0000129>HTMLparser&nbsp;--&nbsp;</DIV
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000130><DIV
131CLASS="REFSYNOPSISDIV"
132><A
Daniel Veillardf012a642001-07-23 19:10:52 +0000133NAME="AEN10193"
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000134></A
135><H2
136>Synopsis</H2
137><TABLE
138BORDER="0"
139BGCOLOR="#D6E8FF"
140WIDTH="100%"
141CELLPADDING="6"
142><TR
143><TD
144><PRE
145CLASS="SYNOPSIS"
146>&#13;
147
148typedef <A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +0000149HREF="libxml-htmlparser.html#HTMLPARSERCTXT"
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000150>htmlParserCtxt</A
151>;
152typedef <A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +0000153HREF="libxml-htmlparser.html#HTMLPARSERCTXTPTR"
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000154>htmlParserCtxtPtr</A
155>;
156typedef <A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +0000157HREF="libxml-htmlparser.html#HTMLPARSERNODEINFO"
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000158>htmlParserNodeInfo</A
159>;
160typedef <A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +0000161HREF="libxml-htmlparser.html#HTMLSAXHANDLER"
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000162>htmlSAXHandler</A
163>;
164typedef <A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +0000165HREF="libxml-htmlparser.html#HTMLSAXHANDLERPTR"
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000166>htmlSAXHandlerPtr</A
167>;
168typedef <A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +0000169HREF="libxml-htmlparser.html#HTMLPARSERINPUT"
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000170>htmlParserInput</A
171>;
172typedef <A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +0000173HREF="libxml-htmlparser.html#HTMLPARSERINPUTPTR"
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000174>htmlParserInputPtr</A
175>;
176typedef <A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +0000177HREF="libxml-htmlparser.html#HTMLDOCPTR"
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000178>htmlDocPtr</A
179>;
180typedef <A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +0000181HREF="libxml-htmlparser.html#HTMLNODEPTR"
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000182>htmlNodePtr</A
183>;
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000184struct <A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +0000185HREF="libxml-htmlparser.html#HTMLELEMDESC"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000186>htmlElemDesc</A
187>;
188typedef <A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +0000189HREF="libxml-htmlparser.html#HTMLELEMDESCPTR"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000190>htmlElemDescPtr</A
191>;
192struct <A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +0000193HREF="libxml-htmlparser.html#HTMLENTITYDESC"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000194>htmlEntityDesc</A
195>;
196typedef <A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +0000197HREF="libxml-htmlparser.html#HTMLENTITYDESCPTR"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000198>htmlEntityDescPtr</A
199>;
Daniel Veillardf012a642001-07-23 19:10:52 +0000200const <A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +0000201HREF="libxml-htmlparser.html#HTMLELEMDESCPTR"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000202>htmlElemDescPtr</A
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000203> <A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +0000204HREF="libxml-htmlparser.html#HTMLTAGLOOKUP"
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000205>htmlTagLookup</A
Daniel Veillardf012a642001-07-23 19:10:52 +0000206> (const <A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +0000207HREF="libxml-tree.html#XMLCHAR"
Daniel Veillarddd6b3671999-09-23 22:19:22 +0000208>xmlChar</A
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000209> *tag);
Daniel Veillardf012a642001-07-23 19:10:52 +0000210const <A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +0000211HREF="libxml-htmlparser.html#HTMLENTITYDESCPTR"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000212>htmlEntityDescPtr</A
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000213> <A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +0000214HREF="libxml-htmlparser.html#HTMLENTITYLOOKUP"
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000215>htmlEntityLookup</A
Daniel Veillardf012a642001-07-23 19:10:52 +0000216> (const <A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +0000217HREF="libxml-tree.html#XMLCHAR"
Daniel Veillarddd6b3671999-09-23 22:19:22 +0000218>xmlChar</A
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000219> *name);
Daniel Veillardf012a642001-07-23 19:10:52 +0000220const <A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +0000221HREF="libxml-htmlparser.html#HTMLENTITYDESCPTR"
Daniel Veillard3bff2b02000-10-01 20:33:47 +0000222>htmlEntityDescPtr</A
223> <A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +0000224HREF="libxml-htmlparser.html#HTMLENTITYVALUELOOKUP"
Daniel Veillard3bff2b02000-10-01 20:33:47 +0000225>htmlEntityValueLookup</A
Daniel Veillardf012a642001-07-23 19:10:52 +0000226>
227 (unsigned int value);
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000228int <A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +0000229HREF="libxml-htmlparser.html#HTMLISAUTOCLOSED"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000230>htmlIsAutoClosed</A
231> (<A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +0000232HREF="libxml-htmlparser.html#HTMLDOCPTR"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000233>htmlDocPtr</A
234> doc,
235 <A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +0000236HREF="libxml-htmlparser.html#HTMLNODEPTR"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000237>htmlNodePtr</A
238> elem);
239int <A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +0000240HREF="libxml-htmlparser.html#HTMLAUTOCLOSETAG"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000241>htmlAutoCloseTag</A
242> (<A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +0000243HREF="libxml-htmlparser.html#HTMLDOCPTR"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000244>htmlDocPtr</A
245> doc,
246 const <A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +0000247HREF="libxml-tree.html#XMLCHAR"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000248>xmlChar</A
249> *name,
250 <A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +0000251HREF="libxml-htmlparser.html#HTMLNODEPTR"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000252>htmlNodePtr</A
253> elem);
254<A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +0000255HREF="libxml-htmlparser.html#HTMLENTITYDESCPTR"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000256>htmlEntityDescPtr</A
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000257> <A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +0000258HREF="libxml-htmlparser.html#HTMLPARSEENTITYREF"
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000259>htmlParseEntityRef</A
260> (<A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +0000261HREF="libxml-htmlparser.html#HTMLPARSERCTXTPTR"
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000262>htmlParserCtxtPtr</A
263> ctxt,
264 <A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +0000265HREF="libxml-tree.html#XMLCHAR"
Daniel Veillarddd6b3671999-09-23 22:19:22 +0000266>xmlChar</A
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000267> **str);
268int <A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +0000269HREF="libxml-htmlparser.html#HTMLPARSECHARREF"
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000270>htmlParseCharRef</A
271> (<A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +0000272HREF="libxml-htmlparser.html#HTMLPARSERCTXTPTR"
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000273>htmlParserCtxtPtr</A
274> ctxt);
275void <A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +0000276HREF="libxml-htmlparser.html#HTMLPARSEELEMENT"
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000277>htmlParseElement</A
278> (<A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +0000279HREF="libxml-htmlparser.html#HTMLPARSERCTXTPTR"
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000280>htmlParserCtxtPtr</A
281> ctxt);
282<A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +0000283HREF="libxml-htmlparser.html#HTMLDOCPTR"
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000284>htmlDocPtr</A
285> <A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +0000286HREF="libxml-htmlparser.html#HTMLSAXPARSEDOC"
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000287>htmlSAXParseDoc</A
288> (<A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +0000289HREF="libxml-tree.html#XMLCHAR"
Daniel Veillarddd6b3671999-09-23 22:19:22 +0000290>xmlChar</A
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000291> *cur,
292 const char *encoding,
293 <A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +0000294HREF="libxml-htmlparser.html#HTMLSAXHANDLERPTR"
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000295>htmlSAXHandlerPtr</A
296> sax,
297 void *userData);
298<A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +0000299HREF="libxml-htmlparser.html#HTMLDOCPTR"
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000300>htmlDocPtr</A
301> <A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +0000302HREF="libxml-htmlparser.html#HTMLPARSEDOC"
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000303>htmlParseDoc</A
304> (<A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +0000305HREF="libxml-tree.html#XMLCHAR"
Daniel Veillarddd6b3671999-09-23 22:19:22 +0000306>xmlChar</A
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000307> *cur,
308 const char *encoding);
309<A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +0000310HREF="libxml-htmlparser.html#HTMLDOCPTR"
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000311>htmlDocPtr</A
312> <A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +0000313HREF="libxml-htmlparser.html#HTMLSAXPARSEFILE"
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000314>htmlSAXParseFile</A
315> (const char *filename,
316 const char *encoding,
317 <A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +0000318HREF="libxml-htmlparser.html#HTMLSAXHANDLERPTR"
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000319>htmlSAXHandlerPtr</A
320> sax,
321 void *userData);
322<A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +0000323HREF="libxml-htmlparser.html#HTMLDOCPTR"
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000324>htmlDocPtr</A
325> <A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +0000326HREF="libxml-htmlparser.html#HTMLPARSEFILE"
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000327>htmlParseFile</A
328> (const char *filename,
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000329 const char *encoding);
Daniel Veillarde46e20d2000-07-14 15:02:46 +0000330int <A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +0000331HREF="libxml-htmlparser.html#UTF8TOHTML"
Daniel Veillarde46e20d2000-07-14 15:02:46 +0000332>UTF8ToHtml</A
333> (unsigned char *out,
334 int *outlen,
335 unsigned char *in,
336 int *inlen);
Daniel Veillard3bff2b02000-10-01 20:33:47 +0000337int <A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +0000338HREF="libxml-htmlparser.html#HTMLENCODEENTITIES"
Daniel Veillard3bff2b02000-10-01 20:33:47 +0000339>htmlEncodeEntities</A
340> (unsigned char *out,
341 int *outlen,
342 unsigned char *in,
343 int *inlen,
344 int quoteChar);
Daniel Veillard29a11cc2000-10-25 13:32:39 +0000345int <A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +0000346HREF="libxml-htmlparser.html#HTMLISSCRIPTATTRIBUTE"
Daniel Veillard29a11cc2000-10-25 13:32:39 +0000347>htmlIsScriptAttribute</A
348> (const <A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +0000349HREF="libxml-tree.html#XMLCHAR"
Daniel Veillard29a11cc2000-10-25 13:32:39 +0000350>xmlChar</A
351> *name);
Daniel Veillard503b8932001-01-05 06:36:31 +0000352int <A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +0000353HREF="libxml-htmlparser.html#HTMLHANDLEOMITTEDELEM"
Daniel Veillard503b8932001-01-05 06:36:31 +0000354>htmlHandleOmittedElem</A
355> (int val);
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000356void <A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +0000357HREF="libxml-htmlparser.html#HTMLFREEPARSERCTXT"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000358>htmlFreeParserCtxt</A
359> (<A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +0000360HREF="libxml-htmlparser.html#HTMLPARSERCTXTPTR"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000361>htmlParserCtxtPtr</A
362> ctxt);
363<A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +0000364HREF="libxml-htmlparser.html#HTMLPARSERCTXTPTR"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000365>htmlParserCtxtPtr</A
366> <A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +0000367HREF="libxml-htmlparser.html#HTMLCREATEPUSHPARSERCTXT"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000368>htmlCreatePushParserCtxt</A
369> (<A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +0000370HREF="libxml-htmlparser.html#HTMLSAXHANDLERPTR"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000371>htmlSAXHandlerPtr</A
372> sax,
373 void *user_data,
374 const char *chunk,
375 int size,
376 const char *filename,
377 <A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +0000378HREF="libxml-encoding.html#XMLCHARENCODING"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000379>xmlCharEncoding</A
380> enc);
381int <A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +0000382HREF="libxml-htmlparser.html#HTMLPARSECHUNK"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000383>htmlParseChunk</A
384> (<A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +0000385HREF="libxml-htmlparser.html#HTMLPARSERCTXTPTR"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000386>htmlParserCtxtPtr</A
387> ctxt,
388 const char *chunk,
389 int size,
390 int terminate);</PRE
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000391></TD
392></TR
393></TABLE
394></DIV
395><DIV
396CLASS="REFSECT1"
397><A
Daniel Veillardf012a642001-07-23 19:10:52 +0000398NAME="AEN10257"
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000399></A
400><H2
401>Description</H2
402><P
403></P
404></DIV
405><DIV
406CLASS="REFSECT1"
407><A
Daniel Veillardf012a642001-07-23 19:10:52 +0000408NAME="AEN10260"
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000409></A
410><H2
411>Details</H2
412><DIV
413CLASS="REFSECT2"
414><A
Daniel Veillardf012a642001-07-23 19:10:52 +0000415NAME="AEN10262"
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000416></A
417><H3
418><A
419NAME="HTMLPARSERCTXT"
420></A
421>htmlParserCtxt</H3
Daniel Veillard4b8328d2001-07-05 22:48:42 +0000422><TABLE
423BORDER="0"
424BGCOLOR="#D6E8FF"
425WIDTH="100%"
426CELLPADDING="6"
427><TR
428><TD
429><PRE
430CLASS="PROGRAMLISTING"
431>typedef xmlParserCtxt htmlParserCtxt;</PRE
432></TD
433></TR
434></TABLE
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000435><P
436></P
437></DIV
438><HR><DIV
439CLASS="REFSECT2"
440><A
Daniel Veillardf012a642001-07-23 19:10:52 +0000441NAME="AEN10267"
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000442></A
443><H3
444><A
445NAME="HTMLPARSERCTXTPTR"
446></A
447>htmlParserCtxtPtr</H3
Daniel Veillard4b8328d2001-07-05 22:48:42 +0000448><TABLE
449BORDER="0"
450BGCOLOR="#D6E8FF"
451WIDTH="100%"
452CELLPADDING="6"
453><TR
454><TD
455><PRE
456CLASS="PROGRAMLISTING"
457>typedef xmlParserCtxtPtr htmlParserCtxtPtr;</PRE
458></TD
459></TR
460></TABLE
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000461><P
462></P
463></DIV
464><HR><DIV
465CLASS="REFSECT2"
466><A
Daniel Veillardf012a642001-07-23 19:10:52 +0000467NAME="AEN10272"
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000468></A
469><H3
470><A
471NAME="HTMLPARSERNODEINFO"
472></A
473>htmlParserNodeInfo</H3
Daniel Veillard4b8328d2001-07-05 22:48:42 +0000474><TABLE
475BORDER="0"
476BGCOLOR="#D6E8FF"
477WIDTH="100%"
478CELLPADDING="6"
479><TR
480><TD
481><PRE
482CLASS="PROGRAMLISTING"
483>typedef xmlParserNodeInfo htmlParserNodeInfo;</PRE
484></TD
485></TR
486></TABLE
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000487><P
488></P
489></DIV
490><HR><DIV
491CLASS="REFSECT2"
492><A
Daniel Veillardf012a642001-07-23 19:10:52 +0000493NAME="AEN10277"
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000494></A
495><H3
496><A
497NAME="HTMLSAXHANDLER"
498></A
499>htmlSAXHandler</H3
Daniel Veillard4b8328d2001-07-05 22:48:42 +0000500><TABLE
501BORDER="0"
502BGCOLOR="#D6E8FF"
503WIDTH="100%"
504CELLPADDING="6"
505><TR
506><TD
507><PRE
508CLASS="PROGRAMLISTING"
509>typedef xmlSAXHandler htmlSAXHandler;</PRE
510></TD
511></TR
512></TABLE
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000513><P
514></P
515></DIV
516><HR><DIV
517CLASS="REFSECT2"
518><A
Daniel Veillardf012a642001-07-23 19:10:52 +0000519NAME="AEN10282"
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000520></A
521><H3
522><A
523NAME="HTMLSAXHANDLERPTR"
524></A
525>htmlSAXHandlerPtr</H3
Daniel Veillard4b8328d2001-07-05 22:48:42 +0000526><TABLE
527BORDER="0"
528BGCOLOR="#D6E8FF"
529WIDTH="100%"
530CELLPADDING="6"
531><TR
532><TD
533><PRE
534CLASS="PROGRAMLISTING"
535>typedef xmlSAXHandlerPtr htmlSAXHandlerPtr;</PRE
536></TD
537></TR
538></TABLE
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000539><P
540></P
541></DIV
542><HR><DIV
543CLASS="REFSECT2"
544><A
Daniel Veillardf012a642001-07-23 19:10:52 +0000545NAME="AEN10287"
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000546></A
547><H3
548><A
549NAME="HTMLPARSERINPUT"
550></A
551>htmlParserInput</H3
Daniel Veillard4b8328d2001-07-05 22:48:42 +0000552><TABLE
553BORDER="0"
554BGCOLOR="#D6E8FF"
555WIDTH="100%"
556CELLPADDING="6"
557><TR
558><TD
559><PRE
560CLASS="PROGRAMLISTING"
561>typedef xmlParserInput htmlParserInput;</PRE
562></TD
563></TR
564></TABLE
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000565><P
566></P
567></DIV
568><HR><DIV
569CLASS="REFSECT2"
570><A
Daniel Veillardf012a642001-07-23 19:10:52 +0000571NAME="AEN10292"
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000572></A
573><H3
574><A
575NAME="HTMLPARSERINPUTPTR"
576></A
577>htmlParserInputPtr</H3
Daniel Veillard4b8328d2001-07-05 22:48:42 +0000578><TABLE
579BORDER="0"
580BGCOLOR="#D6E8FF"
581WIDTH="100%"
582CELLPADDING="6"
583><TR
584><TD
585><PRE
586CLASS="PROGRAMLISTING"
587>typedef xmlParserInputPtr htmlParserInputPtr;</PRE
588></TD
589></TR
590></TABLE
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000591><P
592></P
593></DIV
594><HR><DIV
595CLASS="REFSECT2"
596><A
Daniel Veillardf012a642001-07-23 19:10:52 +0000597NAME="AEN10297"
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000598></A
599><H3
600><A
601NAME="HTMLDOCPTR"
602></A
603>htmlDocPtr</H3
Daniel Veillard4b8328d2001-07-05 22:48:42 +0000604><TABLE
605BORDER="0"
606BGCOLOR="#D6E8FF"
607WIDTH="100%"
608CELLPADDING="6"
609><TR
610><TD
611><PRE
612CLASS="PROGRAMLISTING"
613>typedef xmlDocPtr htmlDocPtr;</PRE
614></TD
615></TR
616></TABLE
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000617><P
618></P
619></DIV
620><HR><DIV
621CLASS="REFSECT2"
622><A
Daniel Veillardf012a642001-07-23 19:10:52 +0000623NAME="AEN10302"
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000624></A
625><H3
626><A
627NAME="HTMLNODEPTR"
628></A
629>htmlNodePtr</H3
Daniel Veillard4b8328d2001-07-05 22:48:42 +0000630><TABLE
631BORDER="0"
632BGCOLOR="#D6E8FF"
633WIDTH="100%"
634CELLPADDING="6"
635><TR
636><TD
637><PRE
638CLASS="PROGRAMLISTING"
639>typedef xmlNodePtr htmlNodePtr;</PRE
640></TD
641></TR
642></TABLE
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000643><P
644></P
645></DIV
646><HR><DIV
647CLASS="REFSECT2"
648><A
Daniel Veillardf012a642001-07-23 19:10:52 +0000649NAME="AEN10307"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000650></A
651><H3
652><A
653NAME="HTMLELEMDESC"
654></A
655>struct htmlElemDesc</H3
656><TABLE
657BORDER="0"
658BGCOLOR="#D6E8FF"
659WIDTH="100%"
660CELLPADDING="6"
661><TR
662><TD
663><PRE
664CLASS="PROGRAMLISTING"
665>struct htmlElemDesc {
666 const char *name; /* The tag name */
Daniel Veillard4ec885a2001-06-17 10:31:07 +0000667 char startTag; /* Whether the start tag can be implied */
668 char endTag; /* Whether the end tag can be implied */
669 char saveEndTag; /* Whether the end tag should be saved */
670 char empty; /* Is this an empty element ? */
671 char depr; /* Is this a deprecated element ? */
672 char dtd; /* 1: only in Loose DTD, 2: only Frameset one */
673 char isinline; /* is this a block 0 or inline 1 element */
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000674 const char *desc; /* the description */
675};</PRE
676></TD
677></TR
678></TABLE
679><P
680></P
681></DIV
682><HR><DIV
683CLASS="REFSECT2"
684><A
Daniel Veillardf012a642001-07-23 19:10:52 +0000685NAME="AEN10312"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000686></A
687><H3
688><A
689NAME="HTMLELEMDESCPTR"
690></A
691>htmlElemDescPtr</H3
Daniel Veillard4b8328d2001-07-05 22:48:42 +0000692><TABLE
693BORDER="0"
694BGCOLOR="#D6E8FF"
695WIDTH="100%"
696CELLPADDING="6"
697><TR
698><TD
699><PRE
700CLASS="PROGRAMLISTING"
701>typedef htmlElemDesc *htmlElemDescPtr;</PRE
702></TD
703></TR
704></TABLE
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000705><P
706></P
707></DIV
708><HR><DIV
709CLASS="REFSECT2"
710><A
Daniel Veillardf012a642001-07-23 19:10:52 +0000711NAME="AEN10317"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000712></A
713><H3
714><A
715NAME="HTMLENTITYDESC"
716></A
717>struct htmlEntityDesc</H3
718><TABLE
719BORDER="0"
720BGCOLOR="#D6E8FF"
721WIDTH="100%"
722CELLPADDING="6"
723><TR
724><TD
725><PRE
726CLASS="PROGRAMLISTING"
727>struct htmlEntityDesc {
Daniel Veillarda41123c2001-04-22 19:31:20 +0000728 unsigned int value; /* the UNICODE value for the character */
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000729 const char *name; /* The entity name */
730 const char *desc; /* the description */
731};</PRE
732></TD
733></TR
734></TABLE
735><P
736></P
737></DIV
738><HR><DIV
739CLASS="REFSECT2"
740><A
Daniel Veillardf012a642001-07-23 19:10:52 +0000741NAME="AEN10322"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000742></A
743><H3
744><A
745NAME="HTMLENTITYDESCPTR"
746></A
747>htmlEntityDescPtr</H3
Daniel Veillard4b8328d2001-07-05 22:48:42 +0000748><TABLE
749BORDER="0"
750BGCOLOR="#D6E8FF"
751WIDTH="100%"
752CELLPADDING="6"
753><TR
754><TD
755><PRE
756CLASS="PROGRAMLISTING"
757>typedef htmlEntityDesc *htmlEntityDescPtr;</PRE
758></TD
759></TR
760></TABLE
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000761><P
762></P
763></DIV
764><HR><DIV
765CLASS="REFSECT2"
766><A
Daniel Veillardf012a642001-07-23 19:10:52 +0000767NAME="AEN10327"
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000768></A
769><H3
770><A
771NAME="HTMLTAGLOOKUP"
772></A
773>htmlTagLookup ()</H3
774><TABLE
775BORDER="0"
776BGCOLOR="#D6E8FF"
777WIDTH="100%"
778CELLPADDING="6"
779><TR
780><TD
781><PRE
782CLASS="PROGRAMLISTING"
Daniel Veillardf012a642001-07-23 19:10:52 +0000783>const <A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +0000784HREF="libxml-htmlparser.html#HTMLELEMDESCPTR"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000785>htmlElemDescPtr</A
Daniel Veillardf012a642001-07-23 19:10:52 +0000786> htmlTagLookup (const <A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +0000787HREF="libxml-tree.html#XMLCHAR"
Daniel Veillarddd6b3671999-09-23 22:19:22 +0000788>xmlChar</A
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000789> *tag);</PRE
790></TD
791></TR
792></TABLE
793><P
794>Lookup the HTML tag in the ElementTable</P
795><P
796></P
797><DIV
798CLASS="INFORMALTABLE"
Daniel Veillardbed7b052001-05-19 14:59:49 +0000799><A
Daniel Veillardf012a642001-07-23 19:10:52 +0000800NAME="AEN10335"
Daniel Veillardbed7b052001-05-19 14:59:49 +0000801></A
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000802><P
803></P
804><TABLE
805BORDER="0"
806WIDTH="100%"
807BGCOLOR="#FFD0D0"
808CELLSPACING="0"
809CELLPADDING="4"
810CLASS="CALSTABLE"
Daniel Veillardbed7b052001-05-19 14:59:49 +0000811><TBODY
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000812><TR
813><TD
814WIDTH="20%"
815ALIGN="RIGHT"
816VALIGN="TOP"
817><TT
818CLASS="PARAMETER"
819><I
820>tag</I
821></TT
Daniel Veillard3bbbe6f2001-05-03 11:15:37 +0000822>&nbsp;:</TD
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000823><TD
824WIDTH="80%"
825ALIGN="LEFT"
826VALIGN="TOP"
Daniel Veillard4b8328d2001-07-05 22:48:42 +0000827> The tag name in lowercase</TD
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000828></TR
829><TR
830><TD
831WIDTH="20%"
832ALIGN="RIGHT"
833VALIGN="TOP"
834><I
835CLASS="EMPHASIS"
836>Returns</I
837> :</TD
838><TD
839WIDTH="80%"
840ALIGN="LEFT"
841VALIGN="TOP"
Daniel Veillard4b8328d2001-07-05 22:48:42 +0000842>the related htmlElemDescPtr or NULL if not found.</TD
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000843></TR
Daniel Veillardbed7b052001-05-19 14:59:49 +0000844></TBODY
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000845></TABLE
846><P
847></P
848></DIV
849></DIV
850><HR><DIV
851CLASS="REFSECT2"
852><A
Daniel Veillardf012a642001-07-23 19:10:52 +0000853NAME="AEN10348"
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000854></A
855><H3
856><A
857NAME="HTMLENTITYLOOKUP"
858></A
859>htmlEntityLookup ()</H3
860><TABLE
861BORDER="0"
862BGCOLOR="#D6E8FF"
863WIDTH="100%"
864CELLPADDING="6"
865><TR
866><TD
867><PRE
868CLASS="PROGRAMLISTING"
Daniel Veillardf012a642001-07-23 19:10:52 +0000869>const <A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +0000870HREF="libxml-htmlparser.html#HTMLENTITYDESCPTR"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000871>htmlEntityDescPtr</A
Daniel Veillardf012a642001-07-23 19:10:52 +0000872> htmlEntityLookup (const <A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +0000873HREF="libxml-tree.html#XMLCHAR"
Daniel Veillarddd6b3671999-09-23 22:19:22 +0000874>xmlChar</A
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000875> *name);</PRE
876></TD
877></TR
878></TABLE
879><P
880>Lookup the given entity in EntitiesTable</P
881><P
882>TODO: the linear scan is really ugly, an hash table is really needed.</P
883><P
884></P
885><DIV
886CLASS="INFORMALTABLE"
Daniel Veillardbed7b052001-05-19 14:59:49 +0000887><A
Daniel Veillardf012a642001-07-23 19:10:52 +0000888NAME="AEN10357"
Daniel Veillardbed7b052001-05-19 14:59:49 +0000889></A
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000890><P
891></P
892><TABLE
893BORDER="0"
894WIDTH="100%"
895BGCOLOR="#FFD0D0"
896CELLSPACING="0"
897CELLPADDING="4"
898CLASS="CALSTABLE"
Daniel Veillardbed7b052001-05-19 14:59:49 +0000899><TBODY
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000900><TR
901><TD
902WIDTH="20%"
903ALIGN="RIGHT"
904VALIGN="TOP"
905><TT
906CLASS="PARAMETER"
907><I
908>name</I
909></TT
Daniel Veillard3bbbe6f2001-05-03 11:15:37 +0000910>&nbsp;:</TD
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000911><TD
912WIDTH="80%"
913ALIGN="LEFT"
914VALIGN="TOP"
Daniel Veillard4b8328d2001-07-05 22:48:42 +0000915> the entity name</TD
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000916></TR
917><TR
918><TD
919WIDTH="20%"
920ALIGN="RIGHT"
921VALIGN="TOP"
922><I
923CLASS="EMPHASIS"
924>Returns</I
925> :</TD
926><TD
927WIDTH="80%"
928ALIGN="LEFT"
929VALIGN="TOP"
Daniel Veillard4b8328d2001-07-05 22:48:42 +0000930>the associated htmlEntityDescPtr if found, NULL otherwise.</TD
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000931></TR
Daniel Veillardbed7b052001-05-19 14:59:49 +0000932></TBODY
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000933></TABLE
934><P
935></P
936></DIV
937></DIV
938><HR><DIV
939CLASS="REFSECT2"
940><A
Daniel Veillardf012a642001-07-23 19:10:52 +0000941NAME="AEN10370"
Daniel Veillard3bff2b02000-10-01 20:33:47 +0000942></A
943><H3
944><A
945NAME="HTMLENTITYVALUELOOKUP"
946></A
947>htmlEntityValueLookup ()</H3
948><TABLE
949BORDER="0"
950BGCOLOR="#D6E8FF"
951WIDTH="100%"
952CELLPADDING="6"
953><TR
954><TD
955><PRE
956CLASS="PROGRAMLISTING"
Daniel Veillardf012a642001-07-23 19:10:52 +0000957>const <A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +0000958HREF="libxml-htmlparser.html#HTMLENTITYDESCPTR"
Daniel Veillard3bff2b02000-10-01 20:33:47 +0000959>htmlEntityDescPtr</A
Daniel Veillardf012a642001-07-23 19:10:52 +0000960> htmlEntityValueLookup
961 (unsigned int value);</PRE
Daniel Veillard3bff2b02000-10-01 20:33:47 +0000962></TD
963></TR
964></TABLE
965><P
966>Lookup the given entity in EntitiesTable</P
967><P
968>TODO: the linear scan is really ugly, an hash table is really needed.</P
969><P
970></P
971><DIV
972CLASS="INFORMALTABLE"
Daniel Veillardbed7b052001-05-19 14:59:49 +0000973><A
Daniel Veillardf012a642001-07-23 19:10:52 +0000974NAME="AEN10378"
Daniel Veillardbed7b052001-05-19 14:59:49 +0000975></A
Daniel Veillard3bff2b02000-10-01 20:33:47 +0000976><P
977></P
978><TABLE
979BORDER="0"
980WIDTH="100%"
981BGCOLOR="#FFD0D0"
982CELLSPACING="0"
983CELLPADDING="4"
984CLASS="CALSTABLE"
Daniel Veillardbed7b052001-05-19 14:59:49 +0000985><TBODY
Daniel Veillard3bff2b02000-10-01 20:33:47 +0000986><TR
987><TD
988WIDTH="20%"
989ALIGN="RIGHT"
990VALIGN="TOP"
991><TT
992CLASS="PARAMETER"
993><I
994>value</I
995></TT
Daniel Veillard3bbbe6f2001-05-03 11:15:37 +0000996>&nbsp;:</TD
Daniel Veillard3bff2b02000-10-01 20:33:47 +0000997><TD
998WIDTH="80%"
999ALIGN="LEFT"
1000VALIGN="TOP"
Daniel Veillard4b8328d2001-07-05 22:48:42 +00001001> the entity's unicode value</TD
Daniel Veillard3bff2b02000-10-01 20:33:47 +00001002></TR
1003><TR
1004><TD
1005WIDTH="20%"
1006ALIGN="RIGHT"
1007VALIGN="TOP"
1008><I
1009CLASS="EMPHASIS"
1010>Returns</I
1011> :</TD
1012><TD
1013WIDTH="80%"
1014ALIGN="LEFT"
1015VALIGN="TOP"
Daniel Veillard4b8328d2001-07-05 22:48:42 +00001016>the associated htmlEntityDescPtr if found, NULL otherwise.</TD
Daniel Veillard3bff2b02000-10-01 20:33:47 +00001017></TR
Daniel Veillardbed7b052001-05-19 14:59:49 +00001018></TBODY
Daniel Veillard3bff2b02000-10-01 20:33:47 +00001019></TABLE
1020><P
1021></P
1022></DIV
1023></DIV
1024><HR><DIV
1025CLASS="REFSECT2"
1026><A
Daniel Veillardf012a642001-07-23 19:10:52 +00001027NAME="AEN10391"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00001028></A
1029><H3
1030><A
1031NAME="HTMLISAUTOCLOSED"
1032></A
1033>htmlIsAutoClosed ()</H3
1034><TABLE
1035BORDER="0"
1036BGCOLOR="#D6E8FF"
1037WIDTH="100%"
1038CELLPADDING="6"
1039><TR
1040><TD
1041><PRE
1042CLASS="PROGRAMLISTING"
1043>int htmlIsAutoClosed (<A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +00001044HREF="libxml-htmlparser.html#HTMLDOCPTR"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00001045>htmlDocPtr</A
1046> doc,
1047 <A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +00001048HREF="libxml-htmlparser.html#HTMLNODEPTR"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00001049>htmlNodePtr</A
1050> elem);</PRE
1051></TD
1052></TR
1053></TABLE
1054><P
1055>The HTmL DtD allows a tag to implicitely close other tags.
1056The list is kept in htmlStartClose array. This function checks
1057if a tag is autoclosed by one of it's child</P
1058><P
1059></P
1060><DIV
1061CLASS="INFORMALTABLE"
Daniel Veillardbed7b052001-05-19 14:59:49 +00001062><A
Daniel Veillardf012a642001-07-23 19:10:52 +00001063NAME="AEN10399"
Daniel Veillardbed7b052001-05-19 14:59:49 +00001064></A
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00001065><P
1066></P
1067><TABLE
1068BORDER="0"
1069WIDTH="100%"
1070BGCOLOR="#FFD0D0"
1071CELLSPACING="0"
1072CELLPADDING="4"
1073CLASS="CALSTABLE"
Daniel Veillardbed7b052001-05-19 14:59:49 +00001074><TBODY
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00001075><TR
1076><TD
1077WIDTH="20%"
1078ALIGN="RIGHT"
1079VALIGN="TOP"
1080><TT
1081CLASS="PARAMETER"
1082><I
1083>doc</I
1084></TT
Daniel Veillard3bbbe6f2001-05-03 11:15:37 +00001085>&nbsp;:</TD
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00001086><TD
1087WIDTH="80%"
1088ALIGN="LEFT"
1089VALIGN="TOP"
Daniel Veillard4b8328d2001-07-05 22:48:42 +00001090> the HTML document</TD
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00001091></TR
1092><TR
1093><TD
1094WIDTH="20%"
1095ALIGN="RIGHT"
1096VALIGN="TOP"
1097><TT
1098CLASS="PARAMETER"
1099><I
1100>elem</I
1101></TT
Daniel Veillard3bbbe6f2001-05-03 11:15:37 +00001102>&nbsp;:</TD
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00001103><TD
1104WIDTH="80%"
1105ALIGN="LEFT"
1106VALIGN="TOP"
Daniel Veillard4b8328d2001-07-05 22:48:42 +00001107> the HTML element</TD
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00001108></TR
1109><TR
1110><TD
1111WIDTH="20%"
1112ALIGN="RIGHT"
1113VALIGN="TOP"
1114><I
1115CLASS="EMPHASIS"
1116>Returns</I
1117> :</TD
1118><TD
1119WIDTH="80%"
1120ALIGN="LEFT"
1121VALIGN="TOP"
Daniel Veillard4b8328d2001-07-05 22:48:42 +00001122>1 if autoclosed, 0 otherwise</TD
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00001123></TR
Daniel Veillardbed7b052001-05-19 14:59:49 +00001124></TBODY
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00001125></TABLE
1126><P
1127></P
1128></DIV
1129></DIV
1130><HR><DIV
1131CLASS="REFSECT2"
1132><A
Daniel Veillardf012a642001-07-23 19:10:52 +00001133NAME="AEN10416"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00001134></A
1135><H3
1136><A
1137NAME="HTMLAUTOCLOSETAG"
1138></A
1139>htmlAutoCloseTag ()</H3
1140><TABLE
1141BORDER="0"
1142BGCOLOR="#D6E8FF"
1143WIDTH="100%"
1144CELLPADDING="6"
1145><TR
1146><TD
1147><PRE
1148CLASS="PROGRAMLISTING"
1149>int htmlAutoCloseTag (<A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +00001150HREF="libxml-htmlparser.html#HTMLDOCPTR"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00001151>htmlDocPtr</A
1152> doc,
1153 const <A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +00001154HREF="libxml-tree.html#XMLCHAR"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00001155>xmlChar</A
1156> *name,
1157 <A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +00001158HREF="libxml-htmlparser.html#HTMLNODEPTR"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00001159>htmlNodePtr</A
1160> elem);</PRE
1161></TD
1162></TR
1163></TABLE
1164><P
1165>The HTmL DtD allows a tag to implicitely close other tags.
1166The list is kept in htmlStartClose array. This function checks
1167if the element or one of it's children would autoclose the
1168given tag.</P
1169><P
1170></P
1171><DIV
1172CLASS="INFORMALTABLE"
Daniel Veillardbed7b052001-05-19 14:59:49 +00001173><A
Daniel Veillardf012a642001-07-23 19:10:52 +00001174NAME="AEN10425"
Daniel Veillardbed7b052001-05-19 14:59:49 +00001175></A
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00001176><P
1177></P
1178><TABLE
1179BORDER="0"
1180WIDTH="100%"
1181BGCOLOR="#FFD0D0"
1182CELLSPACING="0"
1183CELLPADDING="4"
1184CLASS="CALSTABLE"
Daniel Veillardbed7b052001-05-19 14:59:49 +00001185><TBODY
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00001186><TR
1187><TD
1188WIDTH="20%"
1189ALIGN="RIGHT"
1190VALIGN="TOP"
1191><TT
1192CLASS="PARAMETER"
1193><I
1194>doc</I
1195></TT
Daniel Veillard3bbbe6f2001-05-03 11:15:37 +00001196>&nbsp;:</TD
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00001197><TD
1198WIDTH="80%"
1199ALIGN="LEFT"
1200VALIGN="TOP"
Daniel Veillard4b8328d2001-07-05 22:48:42 +00001201> the HTML document</TD
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00001202></TR
1203><TR
1204><TD
1205WIDTH="20%"
1206ALIGN="RIGHT"
1207VALIGN="TOP"
1208><TT
1209CLASS="PARAMETER"
1210><I
1211>name</I
1212></TT
Daniel Veillard3bbbe6f2001-05-03 11:15:37 +00001213>&nbsp;:</TD
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00001214><TD
1215WIDTH="80%"
1216ALIGN="LEFT"
1217VALIGN="TOP"
Daniel Veillard4b8328d2001-07-05 22:48:42 +00001218> The tag name</TD
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00001219></TR
1220><TR
1221><TD
1222WIDTH="20%"
1223ALIGN="RIGHT"
1224VALIGN="TOP"
1225><TT
1226CLASS="PARAMETER"
1227><I
1228>elem</I
1229></TT
Daniel Veillard3bbbe6f2001-05-03 11:15:37 +00001230>&nbsp;:</TD
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00001231><TD
1232WIDTH="80%"
1233ALIGN="LEFT"
1234VALIGN="TOP"
Daniel Veillard4b8328d2001-07-05 22:48:42 +00001235> the HTML element</TD
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00001236></TR
1237><TR
1238><TD
1239WIDTH="20%"
1240ALIGN="RIGHT"
1241VALIGN="TOP"
1242><I
1243CLASS="EMPHASIS"
1244>Returns</I
1245> :</TD
1246><TD
1247WIDTH="80%"
1248ALIGN="LEFT"
1249VALIGN="TOP"
Daniel Veillard4b8328d2001-07-05 22:48:42 +00001250>1 if autoclose, 0 otherwise</TD
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00001251></TR
Daniel Veillardbed7b052001-05-19 14:59:49 +00001252></TBODY
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00001253></TABLE
1254><P
1255></P
1256></DIV
1257></DIV
1258><HR><DIV
1259CLASS="REFSECT2"
1260><A
Daniel Veillardf012a642001-07-23 19:10:52 +00001261NAME="AEN10446"
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001262></A
1263><H3
1264><A
1265NAME="HTMLPARSEENTITYREF"
1266></A
1267>htmlParseEntityRef ()</H3
1268><TABLE
1269BORDER="0"
1270BGCOLOR="#D6E8FF"
1271WIDTH="100%"
1272CELLPADDING="6"
1273><TR
1274><TD
1275><PRE
1276CLASS="PROGRAMLISTING"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00001277><A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +00001278HREF="libxml-htmlparser.html#HTMLENTITYDESCPTR"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00001279>htmlEntityDescPtr</A
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001280> htmlParseEntityRef (<A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +00001281HREF="libxml-htmlparser.html#HTMLPARSERCTXTPTR"
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001282>htmlParserCtxtPtr</A
1283> ctxt,
1284 <A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +00001285HREF="libxml-tree.html#XMLCHAR"
Daniel Veillarddd6b3671999-09-23 22:19:22 +00001286>xmlChar</A
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001287> **str);</PRE
1288></TD
1289></TR
1290></TABLE
1291><P
1292>parse an HTML ENTITY references</P
1293><P
Daniel Veillard3bbbe6f2001-05-03 11:15:37 +00001294>[68] EntityRef ::= '&amp;' Name ';'</P
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001295><P
1296></P
1297><DIV
1298CLASS="INFORMALTABLE"
Daniel Veillardbed7b052001-05-19 14:59:49 +00001299><A
Daniel Veillardf012a642001-07-23 19:10:52 +00001300NAME="AEN10456"
Daniel Veillardbed7b052001-05-19 14:59:49 +00001301></A
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001302><P
1303></P
1304><TABLE
1305BORDER="0"
1306WIDTH="100%"
1307BGCOLOR="#FFD0D0"
1308CELLSPACING="0"
1309CELLPADDING="4"
1310CLASS="CALSTABLE"
Daniel Veillardbed7b052001-05-19 14:59:49 +00001311><TBODY
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001312><TR
1313><TD
1314WIDTH="20%"
1315ALIGN="RIGHT"
1316VALIGN="TOP"
1317><TT
1318CLASS="PARAMETER"
1319><I
1320>ctxt</I
1321></TT
Daniel Veillard3bbbe6f2001-05-03 11:15:37 +00001322>&nbsp;:</TD
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001323><TD
1324WIDTH="80%"
1325ALIGN="LEFT"
1326VALIGN="TOP"
Daniel Veillard4b8328d2001-07-05 22:48:42 +00001327> an HTML parser context</TD
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001328></TR
1329><TR
1330><TD
1331WIDTH="20%"
1332ALIGN="RIGHT"
1333VALIGN="TOP"
1334><TT
1335CLASS="PARAMETER"
1336><I
1337>str</I
1338></TT
Daniel Veillard3bbbe6f2001-05-03 11:15:37 +00001339>&nbsp;:</TD
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001340><TD
1341WIDTH="80%"
1342ALIGN="LEFT"
1343VALIGN="TOP"
Daniel Veillard4b8328d2001-07-05 22:48:42 +00001344> location to store the entity name</TD
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001345></TR
1346><TR
1347><TD
1348WIDTH="20%"
1349ALIGN="RIGHT"
1350VALIGN="TOP"
1351><I
1352CLASS="EMPHASIS"
1353>Returns</I
1354> :</TD
1355><TD
1356WIDTH="80%"
1357ALIGN="LEFT"
1358VALIGN="TOP"
Daniel Veillard4b8328d2001-07-05 22:48:42 +00001359>the associated htmlEntityDescPtr if found, or NULL otherwise,
1360if non-NULL *str will have to be freed by the caller.</TD
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001361></TR
Daniel Veillardbed7b052001-05-19 14:59:49 +00001362></TBODY
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001363></TABLE
1364><P
1365></P
1366></DIV
1367></DIV
1368><HR><DIV
1369CLASS="REFSECT2"
1370><A
Daniel Veillardf012a642001-07-23 19:10:52 +00001371NAME="AEN10473"
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001372></A
1373><H3
1374><A
1375NAME="HTMLPARSECHARREF"
1376></A
1377>htmlParseCharRef ()</H3
1378><TABLE
1379BORDER="0"
1380BGCOLOR="#D6E8FF"
1381WIDTH="100%"
1382CELLPADDING="6"
1383><TR
1384><TD
1385><PRE
1386CLASS="PROGRAMLISTING"
1387>int htmlParseCharRef (<A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +00001388HREF="libxml-htmlparser.html#HTMLPARSERCTXTPTR"
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001389>htmlParserCtxtPtr</A
1390> ctxt);</PRE
1391></TD
1392></TR
1393></TABLE
1394><P
1395>parse Reference declarations</P
1396><P
Daniel Veillard3bbbe6f2001-05-03 11:15:37 +00001397>[66] CharRef ::= '&amp;#' [0-9]+ ';' |
1398'&amp;<GTKDOCLINK
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001399HREF="X"
1400>x</GTKDOCLINK
1401>' [0-9a-fA-F]+ ';'</P
1402><P
1403></P
1404><DIV
1405CLASS="INFORMALTABLE"
Daniel Veillardbed7b052001-05-19 14:59:49 +00001406><A
Daniel Veillardf012a642001-07-23 19:10:52 +00001407NAME="AEN10482"
Daniel Veillardbed7b052001-05-19 14:59:49 +00001408></A
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001409><P
1410></P
1411><TABLE
1412BORDER="0"
1413WIDTH="100%"
1414BGCOLOR="#FFD0D0"
1415CELLSPACING="0"
1416CELLPADDING="4"
1417CLASS="CALSTABLE"
Daniel Veillardbed7b052001-05-19 14:59:49 +00001418><TBODY
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001419><TR
1420><TD
1421WIDTH="20%"
1422ALIGN="RIGHT"
1423VALIGN="TOP"
1424><TT
1425CLASS="PARAMETER"
1426><I
1427>ctxt</I
1428></TT
Daniel Veillard3bbbe6f2001-05-03 11:15:37 +00001429>&nbsp;:</TD
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001430><TD
1431WIDTH="80%"
1432ALIGN="LEFT"
1433VALIGN="TOP"
Daniel Veillard4b8328d2001-07-05 22:48:42 +00001434> an HTML parser context</TD
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001435></TR
1436><TR
1437><TD
1438WIDTH="20%"
1439ALIGN="RIGHT"
1440VALIGN="TOP"
1441><I
1442CLASS="EMPHASIS"
1443>Returns</I
1444> :</TD
1445><TD
1446WIDTH="80%"
1447ALIGN="LEFT"
1448VALIGN="TOP"
Daniel Veillard4b8328d2001-07-05 22:48:42 +00001449>the value parsed (as an int)</TD
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001450></TR
Daniel Veillardbed7b052001-05-19 14:59:49 +00001451></TBODY
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001452></TABLE
1453><P
1454></P
1455></DIV
1456></DIV
1457><HR><DIV
1458CLASS="REFSECT2"
1459><A
Daniel Veillardf012a642001-07-23 19:10:52 +00001460NAME="AEN10495"
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001461></A
1462><H3
1463><A
1464NAME="HTMLPARSEELEMENT"
1465></A
1466>htmlParseElement ()</H3
1467><TABLE
1468BORDER="0"
1469BGCOLOR="#D6E8FF"
1470WIDTH="100%"
1471CELLPADDING="6"
1472><TR
1473><TD
1474><PRE
1475CLASS="PROGRAMLISTING"
1476>void htmlParseElement (<A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +00001477HREF="libxml-htmlparser.html#HTMLPARSERCTXTPTR"
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001478>htmlParserCtxtPtr</A
1479> ctxt);</PRE
1480></TD
1481></TR
1482></TABLE
1483><P
1484>parse an HTML element, this is highly recursive</P
1485><P
1486>[39] element ::= EmptyElemTag | STag content ETag</P
1487><P
1488>[41] Attribute ::= Name Eq AttValue</P
1489><P
1490></P
1491><DIV
1492CLASS="INFORMALTABLE"
Daniel Veillardbed7b052001-05-19 14:59:49 +00001493><A
Daniel Veillardf012a642001-07-23 19:10:52 +00001494NAME="AEN10504"
Daniel Veillardbed7b052001-05-19 14:59:49 +00001495></A
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001496><P
1497></P
1498><TABLE
1499BORDER="0"
1500WIDTH="100%"
1501BGCOLOR="#FFD0D0"
1502CELLSPACING="0"
1503CELLPADDING="4"
1504CLASS="CALSTABLE"
Daniel Veillardbed7b052001-05-19 14:59:49 +00001505><TBODY
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001506><TR
1507><TD
1508WIDTH="20%"
1509ALIGN="RIGHT"
1510VALIGN="TOP"
1511><TT
1512CLASS="PARAMETER"
1513><I
1514>ctxt</I
1515></TT
Daniel Veillard3bbbe6f2001-05-03 11:15:37 +00001516>&nbsp;:</TD
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001517><TD
1518WIDTH="80%"
1519ALIGN="LEFT"
1520VALIGN="TOP"
Daniel Veillard4b8328d2001-07-05 22:48:42 +00001521> an HTML parser context</TD
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001522></TR
Daniel Veillardbed7b052001-05-19 14:59:49 +00001523></TBODY
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001524></TABLE
1525><P
1526></P
1527></DIV
1528></DIV
1529><HR><DIV
1530CLASS="REFSECT2"
1531><A
Daniel Veillardf012a642001-07-23 19:10:52 +00001532NAME="AEN10513"
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001533></A
1534><H3
1535><A
1536NAME="HTMLSAXPARSEDOC"
1537></A
1538>htmlSAXParseDoc ()</H3
1539><TABLE
1540BORDER="0"
1541BGCOLOR="#D6E8FF"
1542WIDTH="100%"
1543CELLPADDING="6"
1544><TR
1545><TD
1546><PRE
1547CLASS="PROGRAMLISTING"
1548><A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +00001549HREF="libxml-htmlparser.html#HTMLDOCPTR"
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001550>htmlDocPtr</A
1551> htmlSAXParseDoc (<A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +00001552HREF="libxml-tree.html#XMLCHAR"
Daniel Veillarddd6b3671999-09-23 22:19:22 +00001553>xmlChar</A
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001554> *cur,
1555 const char *encoding,
1556 <A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +00001557HREF="libxml-htmlparser.html#HTMLSAXHANDLERPTR"
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001558>htmlSAXHandlerPtr</A
1559> sax,
1560 void *userData);</PRE
1561></TD
1562></TR
1563></TABLE
1564><P
Daniel Veillard4b8328d2001-07-05 22:48:42 +00001565>Parse an HTML in-memory document. If sax is not NULL, use the SAX callbacks
1566to handle parse events. If sax is NULL, fallback to the default DOM
1567behavior and return a tree.</P
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001568><P
1569></P
1570><DIV
1571CLASS="INFORMALTABLE"
Daniel Veillardbed7b052001-05-19 14:59:49 +00001572><A
Daniel Veillardf012a642001-07-23 19:10:52 +00001573NAME="AEN10522"
Daniel Veillardbed7b052001-05-19 14:59:49 +00001574></A
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001575><P
1576></P
1577><TABLE
1578BORDER="0"
1579WIDTH="100%"
1580BGCOLOR="#FFD0D0"
1581CELLSPACING="0"
1582CELLPADDING="4"
1583CLASS="CALSTABLE"
Daniel Veillardbed7b052001-05-19 14:59:49 +00001584><TBODY
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001585><TR
1586><TD
1587WIDTH="20%"
1588ALIGN="RIGHT"
1589VALIGN="TOP"
1590><TT
1591CLASS="PARAMETER"
1592><I
1593>cur</I
1594></TT
Daniel Veillard3bbbe6f2001-05-03 11:15:37 +00001595>&nbsp;:</TD
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001596><TD
1597WIDTH="80%"
1598ALIGN="LEFT"
1599VALIGN="TOP"
Daniel Veillard4b8328d2001-07-05 22:48:42 +00001600> a pointer to an array of xmlChar</TD
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001601></TR
1602><TR
1603><TD
1604WIDTH="20%"
1605ALIGN="RIGHT"
1606VALIGN="TOP"
1607><TT
1608CLASS="PARAMETER"
1609><I
1610>encoding</I
1611></TT
Daniel Veillard3bbbe6f2001-05-03 11:15:37 +00001612>&nbsp;:</TD
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001613><TD
1614WIDTH="80%"
1615ALIGN="LEFT"
1616VALIGN="TOP"
Daniel Veillard4b8328d2001-07-05 22:48:42 +00001617> a free form C string describing the HTML document encoding, or NULL</TD
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001618></TR
1619><TR
1620><TD
1621WIDTH="20%"
1622ALIGN="RIGHT"
1623VALIGN="TOP"
1624><TT
1625CLASS="PARAMETER"
1626><I
1627>sax</I
1628></TT
Daniel Veillard3bbbe6f2001-05-03 11:15:37 +00001629>&nbsp;:</TD
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001630><TD
1631WIDTH="80%"
1632ALIGN="LEFT"
1633VALIGN="TOP"
Daniel Veillard4b8328d2001-07-05 22:48:42 +00001634> the SAX handler block</TD
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001635></TR
1636><TR
1637><TD
1638WIDTH="20%"
1639ALIGN="RIGHT"
1640VALIGN="TOP"
1641><TT
1642CLASS="PARAMETER"
1643><I
1644>userData</I
1645></TT
Daniel Veillard3bbbe6f2001-05-03 11:15:37 +00001646>&nbsp;:</TD
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001647><TD
1648WIDTH="80%"
1649ALIGN="LEFT"
1650VALIGN="TOP"
Daniel Veillard4b8328d2001-07-05 22:48:42 +00001651> if using SAX, this pointer will be provided on callbacks. </TD
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001652></TR
1653><TR
1654><TD
1655WIDTH="20%"
1656ALIGN="RIGHT"
1657VALIGN="TOP"
1658><I
1659CLASS="EMPHASIS"
1660>Returns</I
1661> :</TD
1662><TD
1663WIDTH="80%"
1664ALIGN="LEFT"
1665VALIGN="TOP"
Daniel Veillard4b8328d2001-07-05 22:48:42 +00001666>the resulting document tree unless SAX is NULL or the document is
1667not well formed.</TD
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001668></TR
Daniel Veillardbed7b052001-05-19 14:59:49 +00001669></TBODY
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001670></TABLE
1671><P
1672></P
1673></DIV
1674></DIV
1675><HR><DIV
1676CLASS="REFSECT2"
1677><A
Daniel Veillardf012a642001-07-23 19:10:52 +00001678NAME="AEN10547"
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001679></A
1680><H3
1681><A
1682NAME="HTMLPARSEDOC"
1683></A
1684>htmlParseDoc ()</H3
1685><TABLE
1686BORDER="0"
1687BGCOLOR="#D6E8FF"
1688WIDTH="100%"
1689CELLPADDING="6"
1690><TR
1691><TD
1692><PRE
1693CLASS="PROGRAMLISTING"
1694><A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +00001695HREF="libxml-htmlparser.html#HTMLDOCPTR"
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001696>htmlDocPtr</A
1697> htmlParseDoc (<A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +00001698HREF="libxml-tree.html#XMLCHAR"
Daniel Veillarddd6b3671999-09-23 22:19:22 +00001699>xmlChar</A
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001700> *cur,
1701 const char *encoding);</PRE
1702></TD
1703></TR
1704></TABLE
1705><P
1706>parse an HTML in-memory document and build a tree.</P
1707><P
1708></P
1709><DIV
1710CLASS="INFORMALTABLE"
Daniel Veillardbed7b052001-05-19 14:59:49 +00001711><A
Daniel Veillardf012a642001-07-23 19:10:52 +00001712NAME="AEN10555"
Daniel Veillardbed7b052001-05-19 14:59:49 +00001713></A
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001714><P
1715></P
1716><TABLE
1717BORDER="0"
1718WIDTH="100%"
1719BGCOLOR="#FFD0D0"
1720CELLSPACING="0"
1721CELLPADDING="4"
1722CLASS="CALSTABLE"
Daniel Veillardbed7b052001-05-19 14:59:49 +00001723><TBODY
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001724><TR
1725><TD
1726WIDTH="20%"
1727ALIGN="RIGHT"
1728VALIGN="TOP"
1729><TT
1730CLASS="PARAMETER"
1731><I
1732>cur</I
1733></TT
Daniel Veillard3bbbe6f2001-05-03 11:15:37 +00001734>&nbsp;:</TD
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001735><TD
1736WIDTH="80%"
1737ALIGN="LEFT"
1738VALIGN="TOP"
Daniel Veillard4b8328d2001-07-05 22:48:42 +00001739> a pointer to an array of xmlChar</TD
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001740></TR
1741><TR
1742><TD
1743WIDTH="20%"
1744ALIGN="RIGHT"
1745VALIGN="TOP"
1746><TT
1747CLASS="PARAMETER"
1748><I
1749>encoding</I
1750></TT
Daniel Veillard3bbbe6f2001-05-03 11:15:37 +00001751>&nbsp;:</TD
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001752><TD
1753WIDTH="80%"
1754ALIGN="LEFT"
1755VALIGN="TOP"
Daniel Veillard4b8328d2001-07-05 22:48:42 +00001756> a free form C string describing the HTML document encoding, or NULL</TD
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001757></TR
1758><TR
1759><TD
1760WIDTH="20%"
1761ALIGN="RIGHT"
1762VALIGN="TOP"
1763><I
1764CLASS="EMPHASIS"
1765>Returns</I
1766> :</TD
1767><TD
1768WIDTH="80%"
1769ALIGN="LEFT"
1770VALIGN="TOP"
Daniel Veillard4b8328d2001-07-05 22:48:42 +00001771>the resulting document tree</TD
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001772></TR
Daniel Veillardbed7b052001-05-19 14:59:49 +00001773></TBODY
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001774></TABLE
1775><P
1776></P
1777></DIV
1778></DIV
1779><HR><DIV
1780CLASS="REFSECT2"
1781><A
Daniel Veillardf012a642001-07-23 19:10:52 +00001782NAME="AEN10572"
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001783></A
1784><H3
1785><A
1786NAME="HTMLSAXPARSEFILE"
1787></A
1788>htmlSAXParseFile ()</H3
1789><TABLE
1790BORDER="0"
1791BGCOLOR="#D6E8FF"
1792WIDTH="100%"
1793CELLPADDING="6"
1794><TR
1795><TD
1796><PRE
1797CLASS="PROGRAMLISTING"
1798><A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +00001799HREF="libxml-htmlparser.html#HTMLDOCPTR"
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001800>htmlDocPtr</A
1801> htmlSAXParseFile (const char *filename,
1802 const char *encoding,
1803 <A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +00001804HREF="libxml-htmlparser.html#HTMLSAXHANDLERPTR"
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001805>htmlSAXHandlerPtr</A
1806> sax,
1807 void *userData);</PRE
1808></TD
1809></TR
1810></TABLE
1811><P
1812>parse an HTML file and build a tree. Automatic support for ZLIB/Compress
1813compressed document is provided by default if found at compile-time.
1814It use the given SAX function block to handle the parsing callback.
1815If sax is NULL, fallback to the default DOM tree building routines.</P
1816><P
1817></P
1818><DIV
1819CLASS="INFORMALTABLE"
Daniel Veillardbed7b052001-05-19 14:59:49 +00001820><A
Daniel Veillardf012a642001-07-23 19:10:52 +00001821NAME="AEN10580"
Daniel Veillardbed7b052001-05-19 14:59:49 +00001822></A
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001823><P
1824></P
1825><TABLE
1826BORDER="0"
1827WIDTH="100%"
1828BGCOLOR="#FFD0D0"
1829CELLSPACING="0"
1830CELLPADDING="4"
1831CLASS="CALSTABLE"
Daniel Veillardbed7b052001-05-19 14:59:49 +00001832><TBODY
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001833><TR
1834><TD
1835WIDTH="20%"
1836ALIGN="RIGHT"
1837VALIGN="TOP"
1838><TT
1839CLASS="PARAMETER"
1840><I
1841>filename</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> the filename</TD
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001849></TR
1850><TR
1851><TD
1852WIDTH="20%"
1853ALIGN="RIGHT"
1854VALIGN="TOP"
1855><TT
1856CLASS="PARAMETER"
1857><I
1858>encoding</I
1859></TT
Daniel Veillard3bbbe6f2001-05-03 11:15:37 +00001860>&nbsp;:</TD
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001861><TD
1862WIDTH="80%"
1863ALIGN="LEFT"
1864VALIGN="TOP"
Daniel Veillard4b8328d2001-07-05 22:48:42 +00001865> a free form C string describing the HTML document encoding, or NULL</TD
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001866></TR
1867><TR
1868><TD
1869WIDTH="20%"
1870ALIGN="RIGHT"
1871VALIGN="TOP"
1872><TT
1873CLASS="PARAMETER"
1874><I
1875>sax</I
1876></TT
Daniel Veillard3bbbe6f2001-05-03 11:15:37 +00001877>&nbsp;:</TD
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001878><TD
1879WIDTH="80%"
1880ALIGN="LEFT"
1881VALIGN="TOP"
Daniel Veillard4b8328d2001-07-05 22:48:42 +00001882> the SAX handler block</TD
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001883></TR
1884><TR
1885><TD
1886WIDTH="20%"
1887ALIGN="RIGHT"
1888VALIGN="TOP"
1889><TT
1890CLASS="PARAMETER"
1891><I
1892>userData</I
1893></TT
Daniel Veillard3bbbe6f2001-05-03 11:15:37 +00001894>&nbsp;:</TD
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001895><TD
1896WIDTH="80%"
1897ALIGN="LEFT"
1898VALIGN="TOP"
Daniel Veillard4b8328d2001-07-05 22:48:42 +00001899> if using SAX, this pointer will be provided on callbacks. </TD
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001900></TR
1901><TR
1902><TD
1903WIDTH="20%"
1904ALIGN="RIGHT"
1905VALIGN="TOP"
1906><I
1907CLASS="EMPHASIS"
1908>Returns</I
1909> :</TD
1910><TD
1911WIDTH="80%"
1912ALIGN="LEFT"
1913VALIGN="TOP"
Daniel Veillard4b8328d2001-07-05 22:48:42 +00001914>the resulting document tree unless SAX is NULL or the document is
1915not well formed.</TD
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001916></TR
Daniel Veillardbed7b052001-05-19 14:59:49 +00001917></TBODY
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001918></TABLE
1919><P
1920></P
1921></DIV
1922></DIV
1923><HR><DIV
1924CLASS="REFSECT2"
1925><A
Daniel Veillardf012a642001-07-23 19:10:52 +00001926NAME="AEN10605"
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001927></A
1928><H3
1929><A
1930NAME="HTMLPARSEFILE"
1931></A
1932>htmlParseFile ()</H3
1933><TABLE
1934BORDER="0"
1935BGCOLOR="#D6E8FF"
1936WIDTH="100%"
1937CELLPADDING="6"
1938><TR
1939><TD
1940><PRE
1941CLASS="PROGRAMLISTING"
1942><A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +00001943HREF="libxml-htmlparser.html#HTMLDOCPTR"
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001944>htmlDocPtr</A
1945> htmlParseFile (const char *filename,
1946 const char *encoding);</PRE
1947></TD
1948></TR
1949></TABLE
1950><P
1951>parse an HTML file and build a tree. Automatic support for ZLIB/Compress
1952compressed document is provided by default if found at compile-time.</P
1953><P
1954></P
1955><DIV
1956CLASS="INFORMALTABLE"
Daniel Veillardbed7b052001-05-19 14:59:49 +00001957><A
Daniel Veillardf012a642001-07-23 19:10:52 +00001958NAME="AEN10612"
Daniel Veillardbed7b052001-05-19 14:59:49 +00001959></A
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001960><P
1961></P
1962><TABLE
1963BORDER="0"
1964WIDTH="100%"
1965BGCOLOR="#FFD0D0"
1966CELLSPACING="0"
1967CELLPADDING="4"
1968CLASS="CALSTABLE"
Daniel Veillardbed7b052001-05-19 14:59:49 +00001969><TBODY
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001970><TR
1971><TD
1972WIDTH="20%"
1973ALIGN="RIGHT"
1974VALIGN="TOP"
1975><TT
1976CLASS="PARAMETER"
1977><I
1978>filename</I
1979></TT
Daniel Veillard3bbbe6f2001-05-03 11:15:37 +00001980>&nbsp;:</TD
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001981><TD
1982WIDTH="80%"
1983ALIGN="LEFT"
1984VALIGN="TOP"
Daniel Veillard4b8328d2001-07-05 22:48:42 +00001985> the filename</TD
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001986></TR
1987><TR
1988><TD
1989WIDTH="20%"
1990ALIGN="RIGHT"
1991VALIGN="TOP"
1992><TT
1993CLASS="PARAMETER"
1994><I
1995>encoding</I
1996></TT
Daniel Veillard3bbbe6f2001-05-03 11:15:37 +00001997>&nbsp;:</TD
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001998><TD
1999WIDTH="80%"
2000ALIGN="LEFT"
2001VALIGN="TOP"
Daniel Veillard4b8328d2001-07-05 22:48:42 +00002002> a free form C string describing the HTML document encoding, or NULL</TD
Daniel Veillard1566d3a1999-07-15 14:24:29 +00002003></TR
2004><TR
2005><TD
2006WIDTH="20%"
2007ALIGN="RIGHT"
2008VALIGN="TOP"
2009><I
2010CLASS="EMPHASIS"
2011>Returns</I
2012> :</TD
2013><TD
2014WIDTH="80%"
2015ALIGN="LEFT"
2016VALIGN="TOP"
Daniel Veillard4b8328d2001-07-05 22:48:42 +00002017>the resulting document tree</TD
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00002018></TR
Daniel Veillardbed7b052001-05-19 14:59:49 +00002019></TBODY
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00002020></TABLE
2021><P
2022></P
2023></DIV
2024></DIV
2025><HR><DIV
2026CLASS="REFSECT2"
2027><A
Daniel Veillardf012a642001-07-23 19:10:52 +00002028NAME="AEN10629"
Daniel Veillarde46e20d2000-07-14 15:02:46 +00002029></A
2030><H3
2031><A
2032NAME="UTF8TOHTML"
2033></A
2034>UTF8ToHtml ()</H3
2035><TABLE
2036BORDER="0"
2037BGCOLOR="#D6E8FF"
2038WIDTH="100%"
2039CELLPADDING="6"
2040><TR
2041><TD
2042><PRE
2043CLASS="PROGRAMLISTING"
2044>int UTF8ToHtml (unsigned char *out,
2045 int *outlen,
2046 unsigned char *in,
2047 int *inlen);</PRE
2048></TD
2049></TR
2050></TABLE
2051><P
2052>Take a block of UTF-8 chars in and try to convert it to an ASCII
2053plus HTML entities block of chars out.</P
2054><P
2055></P
2056><DIV
2057CLASS="INFORMALTABLE"
Daniel Veillardbed7b052001-05-19 14:59:49 +00002058><A
Daniel Veillardf012a642001-07-23 19:10:52 +00002059NAME="AEN10635"
Daniel Veillardbed7b052001-05-19 14:59:49 +00002060></A
Daniel Veillarde46e20d2000-07-14 15:02:46 +00002061><P
2062></P
2063><TABLE
2064BORDER="0"
2065WIDTH="100%"
2066BGCOLOR="#FFD0D0"
2067CELLSPACING="0"
2068CELLPADDING="4"
2069CLASS="CALSTABLE"
Daniel Veillardbed7b052001-05-19 14:59:49 +00002070><TBODY
Daniel Veillarde46e20d2000-07-14 15:02:46 +00002071><TR
2072><TD
2073WIDTH="20%"
2074ALIGN="RIGHT"
2075VALIGN="TOP"
2076><TT
2077CLASS="PARAMETER"
2078><I
2079>out</I
2080></TT
Daniel Veillard3bbbe6f2001-05-03 11:15:37 +00002081>&nbsp;:</TD
Daniel Veillarde46e20d2000-07-14 15:02:46 +00002082><TD
2083WIDTH="80%"
2084ALIGN="LEFT"
2085VALIGN="TOP"
Daniel Veillard4b8328d2001-07-05 22:48:42 +00002086> a pointer to an array of bytes to store the result</TD
Daniel Veillarde46e20d2000-07-14 15:02:46 +00002087></TR
2088><TR
2089><TD
2090WIDTH="20%"
2091ALIGN="RIGHT"
2092VALIGN="TOP"
2093><TT
2094CLASS="PARAMETER"
2095><I
2096>outlen</I
2097></TT
Daniel Veillard3bbbe6f2001-05-03 11:15:37 +00002098>&nbsp;:</TD
Daniel Veillarde46e20d2000-07-14 15:02:46 +00002099><TD
2100WIDTH="80%"
2101ALIGN="LEFT"
2102VALIGN="TOP"
Daniel Veillard4b8328d2001-07-05 22:48:42 +00002103> the length of <TT
2104CLASS="PARAMETER"
2105><I
2106>out</I
2107></TT
2108></TD
Daniel Veillarde46e20d2000-07-14 15:02:46 +00002109></TR
2110><TR
2111><TD
2112WIDTH="20%"
2113ALIGN="RIGHT"
2114VALIGN="TOP"
2115><TT
2116CLASS="PARAMETER"
2117><I
2118>in</I
2119></TT
Daniel Veillard3bbbe6f2001-05-03 11:15:37 +00002120>&nbsp;:</TD
Daniel Veillarde46e20d2000-07-14 15:02:46 +00002121><TD
2122WIDTH="80%"
2123ALIGN="LEFT"
2124VALIGN="TOP"
Daniel Veillard4b8328d2001-07-05 22:48:42 +00002125> a pointer to an array of UTF-8 chars</TD
Daniel Veillarde46e20d2000-07-14 15:02:46 +00002126></TR
2127><TR
2128><TD
2129WIDTH="20%"
2130ALIGN="RIGHT"
2131VALIGN="TOP"
2132><TT
2133CLASS="PARAMETER"
2134><I
2135>inlen</I
2136></TT
Daniel Veillard3bbbe6f2001-05-03 11:15:37 +00002137>&nbsp;:</TD
Daniel Veillarde46e20d2000-07-14 15:02:46 +00002138><TD
2139WIDTH="80%"
2140ALIGN="LEFT"
2141VALIGN="TOP"
Daniel Veillard4b8328d2001-07-05 22:48:42 +00002142> the length of <TT
2143CLASS="PARAMETER"
2144><I
2145>in</I
2146></TT
2147></TD
Daniel Veillarde46e20d2000-07-14 15:02:46 +00002148></TR
2149><TR
2150><TD
2151WIDTH="20%"
2152ALIGN="RIGHT"
2153VALIGN="TOP"
2154><I
2155CLASS="EMPHASIS"
2156>Returns</I
2157> :</TD
2158><TD
2159WIDTH="80%"
2160ALIGN="LEFT"
2161VALIGN="TOP"
Daniel Veillard4b8328d2001-07-05 22:48:42 +00002162>0 if success, -2 if the transcoding fails, or -1 otherwise
2163The value of <TT
2164CLASS="PARAMETER"
2165><I
2166>inlen</I
2167></TT
2168> after return is the number of octets consumed
2169as the return value is positive, else unpredictiable.
2170The value of <TT
2171CLASS="PARAMETER"
2172><I
2173>outlen</I
2174></TT
2175> after return is the number of octets consumed.</TD
Daniel Veillarde46e20d2000-07-14 15:02:46 +00002176></TR
Daniel Veillardbed7b052001-05-19 14:59:49 +00002177></TBODY
Daniel Veillarde46e20d2000-07-14 15:02:46 +00002178></TABLE
2179><P
2180></P
2181></DIV
2182></DIV
2183><HR><DIV
2184CLASS="REFSECT2"
2185><A
Daniel Veillardf012a642001-07-23 19:10:52 +00002186NAME="AEN10664"
Daniel Veillard3bff2b02000-10-01 20:33:47 +00002187></A
2188><H3
2189><A
2190NAME="HTMLENCODEENTITIES"
2191></A
2192>htmlEncodeEntities ()</H3
2193><TABLE
2194BORDER="0"
2195BGCOLOR="#D6E8FF"
2196WIDTH="100%"
2197CELLPADDING="6"
2198><TR
2199><TD
2200><PRE
2201CLASS="PROGRAMLISTING"
2202>int htmlEncodeEntities (unsigned char *out,
2203 int *outlen,
2204 unsigned char *in,
2205 int *inlen,
2206 int quoteChar);</PRE
2207></TD
2208></TR
2209></TABLE
2210><P
2211>Take a block of UTF-8 chars in and try to convert it to an ASCII
2212plus HTML entities block of chars out.</P
2213><P
2214></P
2215><DIV
2216CLASS="INFORMALTABLE"
Daniel Veillardbed7b052001-05-19 14:59:49 +00002217><A
Daniel Veillardf012a642001-07-23 19:10:52 +00002218NAME="AEN10670"
Daniel Veillardbed7b052001-05-19 14:59:49 +00002219></A
Daniel Veillard3bff2b02000-10-01 20:33:47 +00002220><P
2221></P
2222><TABLE
2223BORDER="0"
2224WIDTH="100%"
2225BGCOLOR="#FFD0D0"
2226CELLSPACING="0"
2227CELLPADDING="4"
2228CLASS="CALSTABLE"
Daniel Veillardbed7b052001-05-19 14:59:49 +00002229><TBODY
Daniel Veillard3bff2b02000-10-01 20:33:47 +00002230><TR
2231><TD
2232WIDTH="20%"
2233ALIGN="RIGHT"
2234VALIGN="TOP"
2235><TT
2236CLASS="PARAMETER"
2237><I
2238>out</I
2239></TT
Daniel Veillard3bbbe6f2001-05-03 11:15:37 +00002240>&nbsp;:</TD
Daniel Veillard3bff2b02000-10-01 20:33:47 +00002241><TD
2242WIDTH="80%"
2243ALIGN="LEFT"
2244VALIGN="TOP"
Daniel Veillard4b8328d2001-07-05 22:48:42 +00002245> a pointer to an array of bytes to store the result</TD
Daniel Veillard3bff2b02000-10-01 20:33:47 +00002246></TR
2247><TR
2248><TD
2249WIDTH="20%"
2250ALIGN="RIGHT"
2251VALIGN="TOP"
2252><TT
2253CLASS="PARAMETER"
2254><I
2255>outlen</I
2256></TT
Daniel Veillard3bbbe6f2001-05-03 11:15:37 +00002257>&nbsp;:</TD
Daniel Veillard3bff2b02000-10-01 20:33:47 +00002258><TD
2259WIDTH="80%"
2260ALIGN="LEFT"
2261VALIGN="TOP"
Daniel Veillard4b8328d2001-07-05 22:48:42 +00002262> the length of <TT
2263CLASS="PARAMETER"
2264><I
2265>out</I
2266></TT
2267></TD
Daniel Veillard3bff2b02000-10-01 20:33:47 +00002268></TR
2269><TR
2270><TD
2271WIDTH="20%"
2272ALIGN="RIGHT"
2273VALIGN="TOP"
2274><TT
2275CLASS="PARAMETER"
2276><I
2277>in</I
2278></TT
Daniel Veillard3bbbe6f2001-05-03 11:15:37 +00002279>&nbsp;:</TD
Daniel Veillard3bff2b02000-10-01 20:33:47 +00002280><TD
2281WIDTH="80%"
2282ALIGN="LEFT"
2283VALIGN="TOP"
Daniel Veillard4b8328d2001-07-05 22:48:42 +00002284> a pointer to an array of UTF-8 chars</TD
Daniel Veillard3bff2b02000-10-01 20:33:47 +00002285></TR
2286><TR
2287><TD
2288WIDTH="20%"
2289ALIGN="RIGHT"
2290VALIGN="TOP"
2291><TT
2292CLASS="PARAMETER"
2293><I
2294>inlen</I
2295></TT
Daniel Veillard3bbbe6f2001-05-03 11:15:37 +00002296>&nbsp;:</TD
Daniel Veillard3bff2b02000-10-01 20:33:47 +00002297><TD
2298WIDTH="80%"
2299ALIGN="LEFT"
2300VALIGN="TOP"
Daniel Veillard4b8328d2001-07-05 22:48:42 +00002301> the length of <TT
2302CLASS="PARAMETER"
2303><I
2304>in</I
2305></TT
2306></TD
Daniel Veillard3bff2b02000-10-01 20:33:47 +00002307></TR
2308><TR
2309><TD
2310WIDTH="20%"
2311ALIGN="RIGHT"
2312VALIGN="TOP"
2313><TT
2314CLASS="PARAMETER"
2315><I
2316>quoteChar</I
2317></TT
Daniel Veillard3bbbe6f2001-05-03 11:15:37 +00002318>&nbsp;:</TD
Daniel Veillard3bff2b02000-10-01 20:33:47 +00002319><TD
2320WIDTH="80%"
2321ALIGN="LEFT"
2322VALIGN="TOP"
Daniel Veillard4b8328d2001-07-05 22:48:42 +00002323> the quote character to escape (' or ") or zero.</TD
Daniel Veillard3bff2b02000-10-01 20:33:47 +00002324></TR
2325><TR
2326><TD
2327WIDTH="20%"
2328ALIGN="RIGHT"
2329VALIGN="TOP"
2330><I
2331CLASS="EMPHASIS"
2332>Returns</I
2333> :</TD
2334><TD
2335WIDTH="80%"
2336ALIGN="LEFT"
2337VALIGN="TOP"
Daniel Veillard4b8328d2001-07-05 22:48:42 +00002338>0 if success, -2 if the transcoding fails, or -1 otherwise
2339The value of <TT
2340CLASS="PARAMETER"
2341><I
2342>inlen</I
2343></TT
2344> after return is the number of octets consumed
2345as the return value is positive, else unpredictiable.
2346The value of <TT
2347CLASS="PARAMETER"
2348><I
2349>outlen</I
2350></TT
2351> after return is the number of octets consumed.</TD
Daniel Veillard3bff2b02000-10-01 20:33:47 +00002352></TR
Daniel Veillardbed7b052001-05-19 14:59:49 +00002353></TBODY
Daniel Veillard3bff2b02000-10-01 20:33:47 +00002354></TABLE
2355><P
2356></P
2357></DIV
2358></DIV
2359><HR><DIV
2360CLASS="REFSECT2"
2361><A
Daniel Veillardf012a642001-07-23 19:10:52 +00002362NAME="AEN10703"
Daniel Veillard29a11cc2000-10-25 13:32:39 +00002363></A
2364><H3
2365><A
2366NAME="HTMLISSCRIPTATTRIBUTE"
2367></A
2368>htmlIsScriptAttribute ()</H3
2369><TABLE
2370BORDER="0"
2371BGCOLOR="#D6E8FF"
2372WIDTH="100%"
2373CELLPADDING="6"
2374><TR
2375><TD
2376><PRE
2377CLASS="PROGRAMLISTING"
2378>int htmlIsScriptAttribute (const <A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +00002379HREF="libxml-tree.html#XMLCHAR"
Daniel Veillard29a11cc2000-10-25 13:32:39 +00002380>xmlChar</A
2381> *name);</PRE
2382></TD
2383></TR
2384></TABLE
2385><P
2386>Check if an attribute is of content type Script</P
2387><P
2388></P
2389><DIV
2390CLASS="INFORMALTABLE"
Daniel Veillardbed7b052001-05-19 14:59:49 +00002391><A
Daniel Veillardf012a642001-07-23 19:10:52 +00002392NAME="AEN10710"
Daniel Veillardbed7b052001-05-19 14:59:49 +00002393></A
Daniel Veillard29a11cc2000-10-25 13:32:39 +00002394><P
2395></P
2396><TABLE
2397BORDER="0"
2398WIDTH="100%"
2399BGCOLOR="#FFD0D0"
2400CELLSPACING="0"
2401CELLPADDING="4"
2402CLASS="CALSTABLE"
Daniel Veillardbed7b052001-05-19 14:59:49 +00002403><TBODY
Daniel Veillard29a11cc2000-10-25 13:32:39 +00002404><TR
2405><TD
2406WIDTH="20%"
2407ALIGN="RIGHT"
2408VALIGN="TOP"
2409><TT
2410CLASS="PARAMETER"
2411><I
2412>name</I
2413></TT
Daniel Veillard3bbbe6f2001-05-03 11:15:37 +00002414>&nbsp;:</TD
Daniel Veillard29a11cc2000-10-25 13:32:39 +00002415><TD
2416WIDTH="80%"
2417ALIGN="LEFT"
2418VALIGN="TOP"
Daniel Veillard4b8328d2001-07-05 22:48:42 +00002419> an attribute name</TD
Daniel Veillard29a11cc2000-10-25 13:32:39 +00002420></TR
2421><TR
2422><TD
2423WIDTH="20%"
2424ALIGN="RIGHT"
2425VALIGN="TOP"
2426><I
2427CLASS="EMPHASIS"
2428>Returns</I
2429> :</TD
2430><TD
2431WIDTH="80%"
2432ALIGN="LEFT"
2433VALIGN="TOP"
Daniel Veillard4b8328d2001-07-05 22:48:42 +00002434>1 is the attribute is a script 0 otherwise</TD
Daniel Veillard29a11cc2000-10-25 13:32:39 +00002435></TR
Daniel Veillardbed7b052001-05-19 14:59:49 +00002436></TBODY
Daniel Veillard29a11cc2000-10-25 13:32:39 +00002437></TABLE
2438><P
2439></P
2440></DIV
2441></DIV
2442><HR><DIV
2443CLASS="REFSECT2"
2444><A
Daniel Veillardf012a642001-07-23 19:10:52 +00002445NAME="AEN10723"
Daniel Veillard503b8932001-01-05 06:36:31 +00002446></A
2447><H3
2448><A
2449NAME="HTMLHANDLEOMITTEDELEM"
2450></A
2451>htmlHandleOmittedElem ()</H3
2452><TABLE
2453BORDER="0"
2454BGCOLOR="#D6E8FF"
2455WIDTH="100%"
2456CELLPADDING="6"
2457><TR
2458><TD
2459><PRE
2460CLASS="PROGRAMLISTING"
2461>int htmlHandleOmittedElem (int val);</PRE
2462></TD
2463></TR
2464></TABLE
2465><P
2466>Set and return the previous value for handling HTML omitted tags.</P
2467><P
2468></P
2469><DIV
2470CLASS="INFORMALTABLE"
Daniel Veillardbed7b052001-05-19 14:59:49 +00002471><A
Daniel Veillardf012a642001-07-23 19:10:52 +00002472NAME="AEN10729"
Daniel Veillardbed7b052001-05-19 14:59:49 +00002473></A
Daniel Veillard503b8932001-01-05 06:36:31 +00002474><P
2475></P
2476><TABLE
2477BORDER="0"
2478WIDTH="100%"
2479BGCOLOR="#FFD0D0"
2480CELLSPACING="0"
2481CELLPADDING="4"
2482CLASS="CALSTABLE"
Daniel Veillardbed7b052001-05-19 14:59:49 +00002483><TBODY
Daniel Veillard503b8932001-01-05 06:36:31 +00002484><TR
2485><TD
2486WIDTH="20%"
2487ALIGN="RIGHT"
2488VALIGN="TOP"
2489><TT
2490CLASS="PARAMETER"
2491><I
2492>val</I
2493></TT
Daniel Veillard3bbbe6f2001-05-03 11:15:37 +00002494>&nbsp;:</TD
Daniel Veillard503b8932001-01-05 06:36:31 +00002495><TD
2496WIDTH="80%"
2497ALIGN="LEFT"
2498VALIGN="TOP"
Daniel Veillard4b8328d2001-07-05 22:48:42 +00002499> int 0 or 1 </TD
Daniel Veillard503b8932001-01-05 06:36:31 +00002500></TR
2501><TR
2502><TD
2503WIDTH="20%"
2504ALIGN="RIGHT"
2505VALIGN="TOP"
2506><I
2507CLASS="EMPHASIS"
2508>Returns</I
2509> :</TD
2510><TD
2511WIDTH="80%"
2512ALIGN="LEFT"
2513VALIGN="TOP"
Daniel Veillard4b8328d2001-07-05 22:48:42 +00002514>the last value for 0 for no handling, 1 for auto insertion.</TD
Daniel Veillard503b8932001-01-05 06:36:31 +00002515></TR
Daniel Veillardbed7b052001-05-19 14:59:49 +00002516></TBODY
Daniel Veillard503b8932001-01-05 06:36:31 +00002517></TABLE
2518><P
2519></P
2520></DIV
2521></DIV
2522><HR><DIV
2523CLASS="REFSECT2"
2524><A
Daniel Veillardf012a642001-07-23 19:10:52 +00002525NAME="AEN10742"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00002526></A
2527><H3
2528><A
2529NAME="HTMLFREEPARSERCTXT"
2530></A
2531>htmlFreeParserCtxt ()</H3
2532><TABLE
2533BORDER="0"
2534BGCOLOR="#D6E8FF"
2535WIDTH="100%"
2536CELLPADDING="6"
2537><TR
2538><TD
2539><PRE
2540CLASS="PROGRAMLISTING"
2541>void htmlFreeParserCtxt (<A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +00002542HREF="libxml-htmlparser.html#HTMLPARSERCTXTPTR"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00002543>htmlParserCtxtPtr</A
2544> ctxt);</PRE
2545></TD
2546></TR
2547></TABLE
2548><P
2549>Free all the memory used by a parser context. However the parsed
Daniel Veillard3bbbe6f2001-05-03 11:15:37 +00002550document in ctxt-&gt;myDoc is not freed.</P
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00002551><P
2552></P
2553><DIV
2554CLASS="INFORMALTABLE"
Daniel Veillardbed7b052001-05-19 14:59:49 +00002555><A
Daniel Veillardf012a642001-07-23 19:10:52 +00002556NAME="AEN10749"
Daniel Veillardbed7b052001-05-19 14:59:49 +00002557></A
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00002558><P
2559></P
2560><TABLE
2561BORDER="0"
2562WIDTH="100%"
2563BGCOLOR="#FFD0D0"
2564CELLSPACING="0"
2565CELLPADDING="4"
2566CLASS="CALSTABLE"
Daniel Veillardbed7b052001-05-19 14:59:49 +00002567><TBODY
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00002568><TR
2569><TD
2570WIDTH="20%"
2571ALIGN="RIGHT"
2572VALIGN="TOP"
2573><TT
2574CLASS="PARAMETER"
2575><I
2576>ctxt</I
2577></TT
Daniel Veillard3bbbe6f2001-05-03 11:15:37 +00002578>&nbsp;:</TD
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00002579><TD
2580WIDTH="80%"
2581ALIGN="LEFT"
2582VALIGN="TOP"
Daniel Veillard4b8328d2001-07-05 22:48:42 +00002583> an HTML parser context</TD
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00002584></TR
Daniel Veillardbed7b052001-05-19 14:59:49 +00002585></TBODY
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00002586></TABLE
2587><P
2588></P
2589></DIV
2590></DIV
2591><HR><DIV
2592CLASS="REFSECT2"
2593><A
Daniel Veillardf012a642001-07-23 19:10:52 +00002594NAME="AEN10758"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00002595></A
2596><H3
2597><A
2598NAME="HTMLCREATEPUSHPARSERCTXT"
2599></A
2600>htmlCreatePushParserCtxt ()</H3
2601><TABLE
2602BORDER="0"
2603BGCOLOR="#D6E8FF"
2604WIDTH="100%"
2605CELLPADDING="6"
2606><TR
2607><TD
2608><PRE
2609CLASS="PROGRAMLISTING"
2610><A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +00002611HREF="libxml-htmlparser.html#HTMLPARSERCTXTPTR"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00002612>htmlParserCtxtPtr</A
2613> htmlCreatePushParserCtxt (<A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +00002614HREF="libxml-htmlparser.html#HTMLSAXHANDLERPTR"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00002615>htmlSAXHandlerPtr</A
2616> sax,
2617 void *user_data,
2618 const char *chunk,
2619 int size,
2620 const char *filename,
2621 <A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +00002622HREF="libxml-encoding.html#XMLCHARENCODING"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00002623>xmlCharEncoding</A
2624> enc);</PRE
2625></TD
2626></TR
2627></TABLE
2628><P
2629>Create a parser context for using the HTML parser in push mode
2630To allow content encoding detection, <TT
2631CLASS="PARAMETER"
2632><I
2633>size</I
2634></TT
Daniel Veillard3bbbe6f2001-05-03 11:15:37 +00002635> should be &gt;= 4
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00002636The value of <TT
2637CLASS="PARAMETER"
2638><I
2639>filename</I
2640></TT
2641> is used for fetching external entities
2642and error/warning reports.</P
2643><P
2644></P
2645><DIV
2646CLASS="INFORMALTABLE"
Daniel Veillardbed7b052001-05-19 14:59:49 +00002647><A
Daniel Veillardf012a642001-07-23 19:10:52 +00002648NAME="AEN10769"
Daniel Veillardbed7b052001-05-19 14:59:49 +00002649></A
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00002650><P
2651></P
2652><TABLE
2653BORDER="0"
2654WIDTH="100%"
2655BGCOLOR="#FFD0D0"
2656CELLSPACING="0"
2657CELLPADDING="4"
2658CLASS="CALSTABLE"
Daniel Veillardbed7b052001-05-19 14:59:49 +00002659><TBODY
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00002660><TR
2661><TD
2662WIDTH="20%"
2663ALIGN="RIGHT"
2664VALIGN="TOP"
2665><TT
2666CLASS="PARAMETER"
2667><I
2668>sax</I
2669></TT
Daniel Veillard3bbbe6f2001-05-03 11:15:37 +00002670>&nbsp;:</TD
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00002671><TD
2672WIDTH="80%"
2673ALIGN="LEFT"
2674VALIGN="TOP"
Daniel Veillard4b8328d2001-07-05 22:48:42 +00002675> a SAX handler</TD
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00002676></TR
2677><TR
2678><TD
2679WIDTH="20%"
2680ALIGN="RIGHT"
2681VALIGN="TOP"
2682><TT
2683CLASS="PARAMETER"
2684><I
2685>user_data</I
2686></TT
Daniel Veillard3bbbe6f2001-05-03 11:15:37 +00002687>&nbsp;:</TD
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00002688><TD
2689WIDTH="80%"
2690ALIGN="LEFT"
2691VALIGN="TOP"
Daniel Veillard4b8328d2001-07-05 22:48:42 +00002692> The user data returned on SAX callbacks</TD
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00002693></TR
2694><TR
2695><TD
2696WIDTH="20%"
2697ALIGN="RIGHT"
2698VALIGN="TOP"
2699><TT
2700CLASS="PARAMETER"
2701><I
2702>chunk</I
2703></TT
Daniel Veillard3bbbe6f2001-05-03 11:15:37 +00002704>&nbsp;:</TD
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00002705><TD
2706WIDTH="80%"
2707ALIGN="LEFT"
2708VALIGN="TOP"
Daniel Veillard4b8328d2001-07-05 22:48:42 +00002709> a pointer to an array of chars</TD
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00002710></TR
2711><TR
2712><TD
2713WIDTH="20%"
2714ALIGN="RIGHT"
2715VALIGN="TOP"
2716><TT
2717CLASS="PARAMETER"
2718><I
2719>size</I
2720></TT
Daniel Veillard3bbbe6f2001-05-03 11:15:37 +00002721>&nbsp;:</TD
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00002722><TD
2723WIDTH="80%"
2724ALIGN="LEFT"
2725VALIGN="TOP"
Daniel Veillard4b8328d2001-07-05 22:48:42 +00002726> number of chars in the array</TD
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00002727></TR
2728><TR
2729><TD
2730WIDTH="20%"
2731ALIGN="RIGHT"
2732VALIGN="TOP"
2733><TT
2734CLASS="PARAMETER"
2735><I
2736>filename</I
2737></TT
Daniel Veillard3bbbe6f2001-05-03 11:15:37 +00002738>&nbsp;:</TD
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00002739><TD
2740WIDTH="80%"
2741ALIGN="LEFT"
2742VALIGN="TOP"
Daniel Veillard4b8328d2001-07-05 22:48:42 +00002743> an optional file name or URI</TD
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00002744></TR
2745><TR
2746><TD
2747WIDTH="20%"
2748ALIGN="RIGHT"
2749VALIGN="TOP"
2750><TT
2751CLASS="PARAMETER"
2752><I
2753>enc</I
2754></TT
Daniel Veillard3bbbe6f2001-05-03 11:15:37 +00002755>&nbsp;:</TD
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00002756><TD
2757WIDTH="80%"
2758ALIGN="LEFT"
2759VALIGN="TOP"
Daniel Veillard4b8328d2001-07-05 22:48:42 +00002760> an optional encoding</TD
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00002761></TR
2762><TR
2763><TD
2764WIDTH="20%"
2765ALIGN="RIGHT"
2766VALIGN="TOP"
2767><I
2768CLASS="EMPHASIS"
2769>Returns</I
2770> :</TD
2771><TD
2772WIDTH="80%"
2773ALIGN="LEFT"
2774VALIGN="TOP"
Daniel Veillard4b8328d2001-07-05 22:48:42 +00002775>the new parser context or NULL</TD
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00002776></TR
Daniel Veillardbed7b052001-05-19 14:59:49 +00002777></TBODY
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00002778></TABLE
2779><P
2780></P
2781></DIV
2782></DIV
2783><HR><DIV
2784CLASS="REFSECT2"
2785><A
Daniel Veillardf012a642001-07-23 19:10:52 +00002786NAME="AEN10802"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00002787></A
2788><H3
2789><A
2790NAME="HTMLPARSECHUNK"
2791></A
2792>htmlParseChunk ()</H3
2793><TABLE
2794BORDER="0"
2795BGCOLOR="#D6E8FF"
2796WIDTH="100%"
2797CELLPADDING="6"
2798><TR
2799><TD
2800><PRE
2801CLASS="PROGRAMLISTING"
2802>int htmlParseChunk (<A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +00002803HREF="libxml-htmlparser.html#HTMLPARSERCTXTPTR"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00002804>htmlParserCtxtPtr</A
2805> ctxt,
2806 const char *chunk,
2807 int size,
2808 int terminate);</PRE
2809></TD
2810></TR
2811></TABLE
2812><P
2813>Parse a Chunk of memory</P
2814><P
2815></P
2816><DIV
2817CLASS="INFORMALTABLE"
Daniel Veillardbed7b052001-05-19 14:59:49 +00002818><A
Daniel Veillardf012a642001-07-23 19:10:52 +00002819NAME="AEN10809"
Daniel Veillardbed7b052001-05-19 14:59:49 +00002820></A
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00002821><P
2822></P
2823><TABLE
2824BORDER="0"
2825WIDTH="100%"
2826BGCOLOR="#FFD0D0"
2827CELLSPACING="0"
2828CELLPADDING="4"
2829CLASS="CALSTABLE"
Daniel Veillardbed7b052001-05-19 14:59:49 +00002830><TBODY
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00002831><TR
2832><TD
2833WIDTH="20%"
2834ALIGN="RIGHT"
2835VALIGN="TOP"
2836><TT
2837CLASS="PARAMETER"
2838><I
2839>ctxt</I
2840></TT
Daniel Veillard3bbbe6f2001-05-03 11:15:37 +00002841>&nbsp;:</TD
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00002842><TD
2843WIDTH="80%"
2844ALIGN="LEFT"
2845VALIGN="TOP"
Daniel Veillard4b8328d2001-07-05 22:48:42 +00002846> an XML parser context</TD
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00002847></TR
2848><TR
2849><TD
2850WIDTH="20%"
2851ALIGN="RIGHT"
2852VALIGN="TOP"
2853><TT
2854CLASS="PARAMETER"
2855><I
2856>chunk</I
2857></TT
Daniel Veillard3bbbe6f2001-05-03 11:15:37 +00002858>&nbsp;:</TD
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00002859><TD
2860WIDTH="80%"
2861ALIGN="LEFT"
2862VALIGN="TOP"
Daniel Veillard4b8328d2001-07-05 22:48:42 +00002863> an char array</TD
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00002864></TR
2865><TR
2866><TD
2867WIDTH="20%"
2868ALIGN="RIGHT"
2869VALIGN="TOP"
2870><TT
2871CLASS="PARAMETER"
2872><I
2873>size</I
2874></TT
Daniel Veillard3bbbe6f2001-05-03 11:15:37 +00002875>&nbsp;:</TD
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00002876><TD
2877WIDTH="80%"
2878ALIGN="LEFT"
2879VALIGN="TOP"
Daniel Veillard4b8328d2001-07-05 22:48:42 +00002880> the size in byte of the chunk</TD
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00002881></TR
2882><TR
2883><TD
2884WIDTH="20%"
2885ALIGN="RIGHT"
2886VALIGN="TOP"
2887><TT
2888CLASS="PARAMETER"
2889><I
2890>terminate</I
2891></TT
Daniel Veillard3bbbe6f2001-05-03 11:15:37 +00002892>&nbsp;:</TD
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00002893><TD
2894WIDTH="80%"
2895ALIGN="LEFT"
2896VALIGN="TOP"
Daniel Veillard4b8328d2001-07-05 22:48:42 +00002897> last chunk indicator</TD
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00002898></TR
2899><TR
2900><TD
2901WIDTH="20%"
2902ALIGN="RIGHT"
2903VALIGN="TOP"
2904><I
2905CLASS="EMPHASIS"
2906>Returns</I
2907> :</TD
2908><TD
2909WIDTH="80%"
2910ALIGN="LEFT"
2911VALIGN="TOP"
Daniel Veillard4b8328d2001-07-05 22:48:42 +00002912>zero if no error, the xmlParserErrors otherwise.</TD
Daniel Veillard437b87b2000-01-03 17:30:46 +00002913></TR
Daniel Veillardbed7b052001-05-19 14:59:49 +00002914></TBODY
Daniel Veillard437b87b2000-01-03 17:30:46 +00002915></TABLE
2916><P
2917></P
2918></DIV
2919></DIV
Daniel Veillard1566d3a1999-07-15 14:24:29 +00002920></DIV
2921><DIV
2922CLASS="NAVFOOTER"
Daniel Veillard00fdf371999-10-08 09:40:39 +00002923><BR
2924CLEAR="all"><BR><TABLE
Daniel Veillard1566d3a1999-07-15 14:24:29 +00002925WIDTH="100%"
2926BORDER="0"
2927BGCOLOR="#000000"
2928CELLPADDING="1"
2929CELLSPACING="0"
2930><TR
2931><TD
2932WIDTH="25%"
2933BGCOLOR="#C00000"
2934ALIGN="left"
2935><A
Daniel Veillard3bbbe6f2001-05-03 11:15:37 +00002936HREF="libxml-xmlerror.html"
Daniel Veillard1566d3a1999-07-15 14:24:29 +00002937><FONT
2938COLOR="#FFFFFF"
2939SIZE="3"
2940><B
2941>&#60;&#60;&#60; Previous Page</B
2942></FONT
2943></A
2944></TD
2945><TD
2946WIDTH="25%"
2947BGCOLOR="#0000C0"
2948ALIGN="center"
2949><FONT
2950COLOR="#FFFFFF"
2951SIZE="3"
2952><B
2953><A
2954HREF="book1.html"
2955><FONT
2956COLOR="#FFFFFF"
2957SIZE="3"
2958><B
2959>Home</B
2960></FONT
2961></A
2962></B
2963></FONT
2964></TD
2965><TD
2966WIDTH="25%"
2967BGCOLOR="#00C000"
2968ALIGN="center"
2969><FONT
2970COLOR="#FFFFFF"
2971SIZE="3"
2972><B
2973><A
Daniel Veillard35008381999-10-25 13:15:52 +00002974HREF="libxml-lib.html"
Daniel Veillard1566d3a1999-07-15 14:24:29 +00002975><FONT
2976COLOR="#FFFFFF"
2977SIZE="3"
2978><B
2979>Up</B
2980></FONT
2981></A
2982></B
2983></FONT
2984></TD
2985><TD
2986WIDTH="25%"
2987BGCOLOR="#C00000"
2988ALIGN="right"
2989><A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +00002990HREF="libxml-htmltree.html"
Daniel Veillard1566d3a1999-07-15 14:24:29 +00002991><FONT
2992COLOR="#FFFFFF"
2993SIZE="3"
2994><B
2995>Next Page &#62;&#62;&#62;</B
2996></FONT
2997></A
2998></TD
2999></TR
3000><TR
3001><TD
3002COLSPAN="2"
3003ALIGN="left"
3004><FONT
3005COLOR="#FFFFFF"
3006SIZE="3"
3007><B
Daniel Veillard3bbbe6f2001-05-03 11:15:37 +00003008>xmlerror</B
Daniel Veillard1566d3a1999-07-15 14:24:29 +00003009></FONT
3010></TD
3011><TD
3012COLSPAN="2"
3013ALIGN="right"
3014><FONT
3015COLOR="#FFFFFF"
3016SIZE="3"
3017><B
3018>HTMLtree</B
3019></FONT
3020></TD
3021></TR
3022></TABLE
3023></DIV
3024></BODY
3025></HTML
3026>