blob: e512ba26a4af4b3fc9bfe6893a9f5512987998b8 [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 Veillarde7ead2d2001-08-22 23:44:09 +0000125NAME="AEN10363"
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 Veillarde7ead2d2001-08-22 23:44:09 +0000133NAME="AEN10366"
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 Veillarde7ead2d2001-08-22 23:44:09 +0000201HREF="libxml-htmlparser.html#HTMLELEMDESC"
202>htmlElemDesc</A
203>* <A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +0000204HREF="libxml-htmlparser.html#HTMLTAGLOOKUP"
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000205>htmlTagLookup</A
Daniel Veillarde7ead2d2001-08-22 23:44:09 +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 Veillarde7ead2d2001-08-22 23:44:09 +0000211HREF="libxml-htmlparser.html#HTMLENTITYDESC"
212>htmlEntityDesc</A
213>* <A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +0000214HREF="libxml-htmlparser.html#HTMLENTITYLOOKUP"
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000215>htmlEntityLookup</A
Daniel Veillarde7ead2d2001-08-22 23:44:09 +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 Veillarde7ead2d2001-08-22 23:44:09 +0000221HREF="libxml-htmlparser.html#HTMLENTITYDESC"
222>htmlEntityDesc</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 Veillarde7ead2d2001-08-22 23:44:09 +0000226> (unsigned int value);
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000227int <A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +0000228HREF="libxml-htmlparser.html#HTMLISAUTOCLOSED"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000229>htmlIsAutoClosed</A
230> (<A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +0000231HREF="libxml-htmlparser.html#HTMLDOCPTR"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000232>htmlDocPtr</A
233> doc,
234 <A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +0000235HREF="libxml-htmlparser.html#HTMLNODEPTR"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000236>htmlNodePtr</A
237> elem);
238int <A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +0000239HREF="libxml-htmlparser.html#HTMLAUTOCLOSETAG"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000240>htmlAutoCloseTag</A
241> (<A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +0000242HREF="libxml-htmlparser.html#HTMLDOCPTR"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000243>htmlDocPtr</A
244> doc,
245 const <A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +0000246HREF="libxml-tree.html#XMLCHAR"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000247>xmlChar</A
248> *name,
249 <A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +0000250HREF="libxml-htmlparser.html#HTMLNODEPTR"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000251>htmlNodePtr</A
252> elem);
Daniel Veillarde7ead2d2001-08-22 23:44:09 +0000253const <A
254HREF="libxml-htmlparser.html#HTMLENTITYDESC"
255>htmlEntityDesc</A
256>* <A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +0000257HREF="libxml-htmlparser.html#HTMLPARSEENTITYREF"
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000258>htmlParseEntityRef</A
Daniel Veillarde7ead2d2001-08-22 23:44:09 +0000259> (<A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +0000260HREF="libxml-htmlparser.html#HTMLPARSERCTXTPTR"
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000261>htmlParserCtxtPtr</A
262> ctxt,
263 <A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +0000264HREF="libxml-tree.html#XMLCHAR"
Daniel Veillarddd6b3671999-09-23 22:19:22 +0000265>xmlChar</A
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000266> **str);
267int <A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +0000268HREF="libxml-htmlparser.html#HTMLPARSECHARREF"
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000269>htmlParseCharRef</A
270> (<A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +0000271HREF="libxml-htmlparser.html#HTMLPARSERCTXTPTR"
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000272>htmlParserCtxtPtr</A
273> ctxt);
274void <A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +0000275HREF="libxml-htmlparser.html#HTMLPARSEELEMENT"
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000276>htmlParseElement</A
277> (<A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +0000278HREF="libxml-htmlparser.html#HTMLPARSERCTXTPTR"
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000279>htmlParserCtxtPtr</A
280> ctxt);
281<A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +0000282HREF="libxml-htmlparser.html#HTMLDOCPTR"
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000283>htmlDocPtr</A
284> <A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +0000285HREF="libxml-htmlparser.html#HTMLSAXPARSEDOC"
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000286>htmlSAXParseDoc</A
287> (<A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +0000288HREF="libxml-tree.html#XMLCHAR"
Daniel Veillarddd6b3671999-09-23 22:19:22 +0000289>xmlChar</A
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000290> *cur,
291 const char *encoding,
292 <A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +0000293HREF="libxml-htmlparser.html#HTMLSAXHANDLERPTR"
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000294>htmlSAXHandlerPtr</A
295> sax,
296 void *userData);
297<A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +0000298HREF="libxml-htmlparser.html#HTMLDOCPTR"
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000299>htmlDocPtr</A
300> <A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +0000301HREF="libxml-htmlparser.html#HTMLPARSEDOC"
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000302>htmlParseDoc</A
303> (<A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +0000304HREF="libxml-tree.html#XMLCHAR"
Daniel Veillarddd6b3671999-09-23 22:19:22 +0000305>xmlChar</A
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000306> *cur,
307 const char *encoding);
308<A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +0000309HREF="libxml-htmlparser.html#HTMLDOCPTR"
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000310>htmlDocPtr</A
311> <A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +0000312HREF="libxml-htmlparser.html#HTMLSAXPARSEFILE"
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000313>htmlSAXParseFile</A
314> (const char *filename,
315 const char *encoding,
316 <A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +0000317HREF="libxml-htmlparser.html#HTMLSAXHANDLERPTR"
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000318>htmlSAXHandlerPtr</A
319> sax,
320 void *userData);
321<A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +0000322HREF="libxml-htmlparser.html#HTMLDOCPTR"
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000323>htmlDocPtr</A
324> <A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +0000325HREF="libxml-htmlparser.html#HTMLPARSEFILE"
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000326>htmlParseFile</A
327> (const char *filename,
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000328 const char *encoding);
Daniel Veillarde46e20d2000-07-14 15:02:46 +0000329int <A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +0000330HREF="libxml-htmlparser.html#UTF8TOHTML"
Daniel Veillarde46e20d2000-07-14 15:02:46 +0000331>UTF8ToHtml</A
332> (unsigned char *out,
333 int *outlen,
334 unsigned char *in,
335 int *inlen);
Daniel Veillard3bff2b02000-10-01 20:33:47 +0000336int <A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +0000337HREF="libxml-htmlparser.html#HTMLENCODEENTITIES"
Daniel Veillard3bff2b02000-10-01 20:33:47 +0000338>htmlEncodeEntities</A
339> (unsigned char *out,
340 int *outlen,
341 unsigned char *in,
342 int *inlen,
343 int quoteChar);
Daniel Veillard29a11cc2000-10-25 13:32:39 +0000344int <A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +0000345HREF="libxml-htmlparser.html#HTMLISSCRIPTATTRIBUTE"
Daniel Veillard29a11cc2000-10-25 13:32:39 +0000346>htmlIsScriptAttribute</A
347> (const <A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +0000348HREF="libxml-tree.html#XMLCHAR"
Daniel Veillard29a11cc2000-10-25 13:32:39 +0000349>xmlChar</A
350> *name);
Daniel Veillard503b8932001-01-05 06:36:31 +0000351int <A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +0000352HREF="libxml-htmlparser.html#HTMLHANDLEOMITTEDELEM"
Daniel Veillard503b8932001-01-05 06:36:31 +0000353>htmlHandleOmittedElem</A
354> (int val);
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000355void <A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +0000356HREF="libxml-htmlparser.html#HTMLFREEPARSERCTXT"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000357>htmlFreeParserCtxt</A
358> (<A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +0000359HREF="libxml-htmlparser.html#HTMLPARSERCTXTPTR"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000360>htmlParserCtxtPtr</A
361> ctxt);
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> <A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +0000366HREF="libxml-htmlparser.html#HTMLCREATEPUSHPARSERCTXT"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000367>htmlCreatePushParserCtxt</A
368> (<A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +0000369HREF="libxml-htmlparser.html#HTMLSAXHANDLERPTR"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000370>htmlSAXHandlerPtr</A
371> sax,
372 void *user_data,
373 const char *chunk,
374 int size,
375 const char *filename,
376 <A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +0000377HREF="libxml-encoding.html#XMLCHARENCODING"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000378>xmlCharEncoding</A
379> enc);
380int <A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +0000381HREF="libxml-htmlparser.html#HTMLPARSECHUNK"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000382>htmlParseChunk</A
383> (<A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +0000384HREF="libxml-htmlparser.html#HTMLPARSERCTXTPTR"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000385>htmlParserCtxtPtr</A
386> ctxt,
387 const char *chunk,
388 int size,
389 int terminate);</PRE
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000390></TD
391></TR
392></TABLE
393></DIV
394><DIV
395CLASS="REFSECT1"
396><A
Daniel Veillarde7ead2d2001-08-22 23:44:09 +0000397NAME="AEN10430"
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000398></A
399><H2
400>Description</H2
401><P
402></P
403></DIV
404><DIV
405CLASS="REFSECT1"
406><A
Daniel Veillarde7ead2d2001-08-22 23:44:09 +0000407NAME="AEN10433"
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000408></A
409><H2
410>Details</H2
411><DIV
412CLASS="REFSECT2"
413><A
Daniel Veillarde7ead2d2001-08-22 23:44:09 +0000414NAME="AEN10435"
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000415></A
416><H3
417><A
418NAME="HTMLPARSERCTXT"
419></A
420>htmlParserCtxt</H3
Daniel Veillard4b8328d2001-07-05 22:48:42 +0000421><TABLE
422BORDER="0"
423BGCOLOR="#D6E8FF"
424WIDTH="100%"
425CELLPADDING="6"
426><TR
427><TD
428><PRE
429CLASS="PROGRAMLISTING"
430>typedef xmlParserCtxt htmlParserCtxt;</PRE
431></TD
432></TR
433></TABLE
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000434><P
435></P
436></DIV
437><HR><DIV
438CLASS="REFSECT2"
439><A
Daniel Veillarde7ead2d2001-08-22 23:44:09 +0000440NAME="AEN10440"
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000441></A
442><H3
443><A
444NAME="HTMLPARSERCTXTPTR"
445></A
446>htmlParserCtxtPtr</H3
Daniel Veillard4b8328d2001-07-05 22:48:42 +0000447><TABLE
448BORDER="0"
449BGCOLOR="#D6E8FF"
450WIDTH="100%"
451CELLPADDING="6"
452><TR
453><TD
454><PRE
455CLASS="PROGRAMLISTING"
456>typedef xmlParserCtxtPtr htmlParserCtxtPtr;</PRE
457></TD
458></TR
459></TABLE
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000460><P
461></P
462></DIV
463><HR><DIV
464CLASS="REFSECT2"
465><A
Daniel Veillarde7ead2d2001-08-22 23:44:09 +0000466NAME="AEN10445"
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000467></A
468><H3
469><A
470NAME="HTMLPARSERNODEINFO"
471></A
472>htmlParserNodeInfo</H3
Daniel Veillard4b8328d2001-07-05 22:48:42 +0000473><TABLE
474BORDER="0"
475BGCOLOR="#D6E8FF"
476WIDTH="100%"
477CELLPADDING="6"
478><TR
479><TD
480><PRE
481CLASS="PROGRAMLISTING"
482>typedef xmlParserNodeInfo htmlParserNodeInfo;</PRE
483></TD
484></TR
485></TABLE
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000486><P
487></P
488></DIV
489><HR><DIV
490CLASS="REFSECT2"
491><A
Daniel Veillarde7ead2d2001-08-22 23:44:09 +0000492NAME="AEN10450"
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000493></A
494><H3
495><A
496NAME="HTMLSAXHANDLER"
497></A
498>htmlSAXHandler</H3
Daniel Veillard4b8328d2001-07-05 22:48:42 +0000499><TABLE
500BORDER="0"
501BGCOLOR="#D6E8FF"
502WIDTH="100%"
503CELLPADDING="6"
504><TR
505><TD
506><PRE
507CLASS="PROGRAMLISTING"
508>typedef xmlSAXHandler htmlSAXHandler;</PRE
509></TD
510></TR
511></TABLE
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000512><P
513></P
514></DIV
515><HR><DIV
516CLASS="REFSECT2"
517><A
Daniel Veillarde7ead2d2001-08-22 23:44:09 +0000518NAME="AEN10455"
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000519></A
520><H3
521><A
522NAME="HTMLSAXHANDLERPTR"
523></A
524>htmlSAXHandlerPtr</H3
Daniel Veillard4b8328d2001-07-05 22:48:42 +0000525><TABLE
526BORDER="0"
527BGCOLOR="#D6E8FF"
528WIDTH="100%"
529CELLPADDING="6"
530><TR
531><TD
532><PRE
533CLASS="PROGRAMLISTING"
534>typedef xmlSAXHandlerPtr htmlSAXHandlerPtr;</PRE
535></TD
536></TR
537></TABLE
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000538><P
539></P
540></DIV
541><HR><DIV
542CLASS="REFSECT2"
543><A
Daniel Veillarde7ead2d2001-08-22 23:44:09 +0000544NAME="AEN10460"
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000545></A
546><H3
547><A
548NAME="HTMLPARSERINPUT"
549></A
550>htmlParserInput</H3
Daniel Veillard4b8328d2001-07-05 22:48:42 +0000551><TABLE
552BORDER="0"
553BGCOLOR="#D6E8FF"
554WIDTH="100%"
555CELLPADDING="6"
556><TR
557><TD
558><PRE
559CLASS="PROGRAMLISTING"
560>typedef xmlParserInput htmlParserInput;</PRE
561></TD
562></TR
563></TABLE
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000564><P
565></P
566></DIV
567><HR><DIV
568CLASS="REFSECT2"
569><A
Daniel Veillarde7ead2d2001-08-22 23:44:09 +0000570NAME="AEN10465"
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000571></A
572><H3
573><A
574NAME="HTMLPARSERINPUTPTR"
575></A
576>htmlParserInputPtr</H3
Daniel Veillard4b8328d2001-07-05 22:48:42 +0000577><TABLE
578BORDER="0"
579BGCOLOR="#D6E8FF"
580WIDTH="100%"
581CELLPADDING="6"
582><TR
583><TD
584><PRE
585CLASS="PROGRAMLISTING"
586>typedef xmlParserInputPtr htmlParserInputPtr;</PRE
587></TD
588></TR
589></TABLE
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000590><P
591></P
592></DIV
593><HR><DIV
594CLASS="REFSECT2"
595><A
Daniel Veillarde7ead2d2001-08-22 23:44:09 +0000596NAME="AEN10470"
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000597></A
598><H3
599><A
600NAME="HTMLDOCPTR"
601></A
602>htmlDocPtr</H3
Daniel Veillard4b8328d2001-07-05 22:48:42 +0000603><TABLE
604BORDER="0"
605BGCOLOR="#D6E8FF"
606WIDTH="100%"
607CELLPADDING="6"
608><TR
609><TD
610><PRE
611CLASS="PROGRAMLISTING"
612>typedef xmlDocPtr htmlDocPtr;</PRE
613></TD
614></TR
615></TABLE
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000616><P
617></P
618></DIV
619><HR><DIV
620CLASS="REFSECT2"
621><A
Daniel Veillarde7ead2d2001-08-22 23:44:09 +0000622NAME="AEN10475"
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000623></A
624><H3
625><A
626NAME="HTMLNODEPTR"
627></A
628>htmlNodePtr</H3
Daniel Veillard4b8328d2001-07-05 22:48:42 +0000629><TABLE
630BORDER="0"
631BGCOLOR="#D6E8FF"
632WIDTH="100%"
633CELLPADDING="6"
634><TR
635><TD
636><PRE
637CLASS="PROGRAMLISTING"
638>typedef xmlNodePtr htmlNodePtr;</PRE
639></TD
640></TR
641></TABLE
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000642><P
643></P
644></DIV
645><HR><DIV
646CLASS="REFSECT2"
647><A
Daniel Veillarde7ead2d2001-08-22 23:44:09 +0000648NAME="AEN10480"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000649></A
650><H3
651><A
652NAME="HTMLELEMDESC"
653></A
654>struct htmlElemDesc</H3
655><TABLE
656BORDER="0"
657BGCOLOR="#D6E8FF"
658WIDTH="100%"
659CELLPADDING="6"
660><TR
661><TD
662><PRE
663CLASS="PROGRAMLISTING"
664>struct htmlElemDesc {
665 const char *name; /* The tag name */
Daniel Veillard4ec885a2001-06-17 10:31:07 +0000666 char startTag; /* Whether the start tag can be implied */
667 char endTag; /* Whether the end tag can be implied */
668 char saveEndTag; /* Whether the end tag should be saved */
669 char empty; /* Is this an empty element ? */
670 char depr; /* Is this a deprecated element ? */
671 char dtd; /* 1: only in Loose DTD, 2: only Frameset one */
672 char isinline; /* is this a block 0 or inline 1 element */
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000673 const char *desc; /* the description */
674};</PRE
675></TD
676></TR
677></TABLE
678><P
679></P
680></DIV
681><HR><DIV
682CLASS="REFSECT2"
683><A
Daniel Veillarde7ead2d2001-08-22 23:44:09 +0000684NAME="AEN10485"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000685></A
686><H3
687><A
688NAME="HTMLELEMDESCPTR"
689></A
690>htmlElemDescPtr</H3
Daniel Veillard4b8328d2001-07-05 22:48:42 +0000691><TABLE
692BORDER="0"
693BGCOLOR="#D6E8FF"
694WIDTH="100%"
695CELLPADDING="6"
696><TR
697><TD
698><PRE
699CLASS="PROGRAMLISTING"
700>typedef htmlElemDesc *htmlElemDescPtr;</PRE
701></TD
702></TR
703></TABLE
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000704><P
705></P
706></DIV
707><HR><DIV
708CLASS="REFSECT2"
709><A
Daniel Veillarde7ead2d2001-08-22 23:44:09 +0000710NAME="AEN10490"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000711></A
712><H3
713><A
714NAME="HTMLENTITYDESC"
715></A
716>struct htmlEntityDesc</H3
717><TABLE
718BORDER="0"
719BGCOLOR="#D6E8FF"
720WIDTH="100%"
721CELLPADDING="6"
722><TR
723><TD
724><PRE
725CLASS="PROGRAMLISTING"
726>struct htmlEntityDesc {
Daniel Veillarda41123c2001-04-22 19:31:20 +0000727 unsigned int value; /* the UNICODE value for the character */
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000728 const char *name; /* The entity name */
729 const char *desc; /* the description */
730};</PRE
731></TD
732></TR
733></TABLE
734><P
735></P
736></DIV
737><HR><DIV
738CLASS="REFSECT2"
739><A
Daniel Veillarde7ead2d2001-08-22 23:44:09 +0000740NAME="AEN10495"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000741></A
742><H3
743><A
744NAME="HTMLENTITYDESCPTR"
745></A
746>htmlEntityDescPtr</H3
Daniel Veillard4b8328d2001-07-05 22:48:42 +0000747><TABLE
748BORDER="0"
749BGCOLOR="#D6E8FF"
750WIDTH="100%"
751CELLPADDING="6"
752><TR
753><TD
754><PRE
755CLASS="PROGRAMLISTING"
756>typedef htmlEntityDesc *htmlEntityDescPtr;</PRE
757></TD
758></TR
759></TABLE
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000760><P
761></P
762></DIV
763><HR><DIV
764CLASS="REFSECT2"
765><A
Daniel Veillarde7ead2d2001-08-22 23:44:09 +0000766NAME="AEN10500"
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000767></A
768><H3
769><A
770NAME="HTMLTAGLOOKUP"
771></A
772>htmlTagLookup ()</H3
773><TABLE
774BORDER="0"
775BGCOLOR="#D6E8FF"
776WIDTH="100%"
777CELLPADDING="6"
778><TR
779><TD
780><PRE
781CLASS="PROGRAMLISTING"
Daniel Veillardf012a642001-07-23 19:10:52 +0000782>const <A
Daniel Veillarde7ead2d2001-08-22 23:44:09 +0000783HREF="libxml-htmlparser.html#HTMLELEMDESC"
784>htmlElemDesc</A
785>* htmlTagLookup (const <A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +0000786HREF="libxml-tree.html#XMLCHAR"
Daniel Veillarddd6b3671999-09-23 22:19:22 +0000787>xmlChar</A
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000788> *tag);</PRE
789></TD
790></TR
791></TABLE
792><P
793>Lookup the HTML tag in the ElementTable</P
794><P
795></P
796><DIV
797CLASS="INFORMALTABLE"
Daniel Veillardbed7b052001-05-19 14:59:49 +0000798><A
Daniel Veillarde7ead2d2001-08-22 23:44:09 +0000799NAME="AEN10508"
Daniel Veillardbed7b052001-05-19 14:59:49 +0000800></A
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000801><P
802></P
803><TABLE
804BORDER="0"
805WIDTH="100%"
806BGCOLOR="#FFD0D0"
807CELLSPACING="0"
808CELLPADDING="4"
809CLASS="CALSTABLE"
Daniel Veillardbed7b052001-05-19 14:59:49 +0000810><TBODY
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000811><TR
812><TD
813WIDTH="20%"
814ALIGN="RIGHT"
815VALIGN="TOP"
816><TT
817CLASS="PARAMETER"
818><I
819>tag</I
820></TT
Daniel Veillard3bbbe6f2001-05-03 11:15:37 +0000821>&nbsp;:</TD
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000822><TD
823WIDTH="80%"
824ALIGN="LEFT"
825VALIGN="TOP"
Daniel Veillard4b8328d2001-07-05 22:48:42 +0000826> The tag name in lowercase</TD
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000827></TR
828><TR
829><TD
830WIDTH="20%"
831ALIGN="RIGHT"
832VALIGN="TOP"
833><I
834CLASS="EMPHASIS"
835>Returns</I
836> :</TD
837><TD
838WIDTH="80%"
839ALIGN="LEFT"
840VALIGN="TOP"
Daniel Veillard4b8328d2001-07-05 22:48:42 +0000841>the related htmlElemDescPtr or NULL if not found.</TD
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000842></TR
Daniel Veillardbed7b052001-05-19 14:59:49 +0000843></TBODY
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000844></TABLE
845><P
846></P
847></DIV
848></DIV
849><HR><DIV
850CLASS="REFSECT2"
851><A
Daniel Veillarde7ead2d2001-08-22 23:44:09 +0000852NAME="AEN10521"
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000853></A
854><H3
855><A
856NAME="HTMLENTITYLOOKUP"
857></A
858>htmlEntityLookup ()</H3
859><TABLE
860BORDER="0"
861BGCOLOR="#D6E8FF"
862WIDTH="100%"
863CELLPADDING="6"
864><TR
865><TD
866><PRE
867CLASS="PROGRAMLISTING"
Daniel Veillardf012a642001-07-23 19:10:52 +0000868>const <A
Daniel Veillarde7ead2d2001-08-22 23:44:09 +0000869HREF="libxml-htmlparser.html#HTMLENTITYDESC"
870>htmlEntityDesc</A
871>* htmlEntityLookup (const <A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +0000872HREF="libxml-tree.html#XMLCHAR"
Daniel Veillarddd6b3671999-09-23 22:19:22 +0000873>xmlChar</A
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000874> *name);</PRE
875></TD
876></TR
877></TABLE
878><P
879>Lookup the given entity in EntitiesTable</P
880><P
881>TODO: the linear scan is really ugly, an hash table is really needed.</P
882><P
883></P
884><DIV
885CLASS="INFORMALTABLE"
Daniel Veillardbed7b052001-05-19 14:59:49 +0000886><A
Daniel Veillarde7ead2d2001-08-22 23:44:09 +0000887NAME="AEN10530"
Daniel Veillardbed7b052001-05-19 14:59:49 +0000888></A
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000889><P
890></P
891><TABLE
892BORDER="0"
893WIDTH="100%"
894BGCOLOR="#FFD0D0"
895CELLSPACING="0"
896CELLPADDING="4"
897CLASS="CALSTABLE"
Daniel Veillardbed7b052001-05-19 14:59:49 +0000898><TBODY
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000899><TR
900><TD
901WIDTH="20%"
902ALIGN="RIGHT"
903VALIGN="TOP"
904><TT
905CLASS="PARAMETER"
906><I
907>name</I
908></TT
Daniel Veillard3bbbe6f2001-05-03 11:15:37 +0000909>&nbsp;:</TD
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000910><TD
911WIDTH="80%"
912ALIGN="LEFT"
913VALIGN="TOP"
Daniel Veillard4b8328d2001-07-05 22:48:42 +0000914> the entity name</TD
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000915></TR
916><TR
917><TD
918WIDTH="20%"
919ALIGN="RIGHT"
920VALIGN="TOP"
921><I
922CLASS="EMPHASIS"
923>Returns</I
924> :</TD
925><TD
926WIDTH="80%"
927ALIGN="LEFT"
928VALIGN="TOP"
Daniel Veillard4b8328d2001-07-05 22:48:42 +0000929>the associated htmlEntityDescPtr if found, NULL otherwise.</TD
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000930></TR
Daniel Veillardbed7b052001-05-19 14:59:49 +0000931></TBODY
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000932></TABLE
933><P
934></P
935></DIV
936></DIV
937><HR><DIV
938CLASS="REFSECT2"
939><A
Daniel Veillarde7ead2d2001-08-22 23:44:09 +0000940NAME="AEN10543"
Daniel Veillard3bff2b02000-10-01 20:33:47 +0000941></A
942><H3
943><A
944NAME="HTMLENTITYVALUELOOKUP"
945></A
946>htmlEntityValueLookup ()</H3
947><TABLE
948BORDER="0"
949BGCOLOR="#D6E8FF"
950WIDTH="100%"
951CELLPADDING="6"
952><TR
953><TD
954><PRE
955CLASS="PROGRAMLISTING"
Daniel Veillardf012a642001-07-23 19:10:52 +0000956>const <A
Daniel Veillarde7ead2d2001-08-22 23:44:09 +0000957HREF="libxml-htmlparser.html#HTMLENTITYDESC"
958>htmlEntityDesc</A
959>* htmlEntityValueLookup (unsigned int value);</PRE
Daniel Veillard3bff2b02000-10-01 20:33:47 +0000960></TD
961></TR
962></TABLE
963><P
964>Lookup the given entity in EntitiesTable</P
965><P
966>TODO: the linear scan is really ugly, an hash table is really needed.</P
967><P
968></P
969><DIV
970CLASS="INFORMALTABLE"
Daniel Veillardbed7b052001-05-19 14:59:49 +0000971><A
Daniel Veillarde7ead2d2001-08-22 23:44:09 +0000972NAME="AEN10551"
Daniel Veillardbed7b052001-05-19 14:59:49 +0000973></A
Daniel Veillard3bff2b02000-10-01 20:33:47 +0000974><P
975></P
976><TABLE
977BORDER="0"
978WIDTH="100%"
979BGCOLOR="#FFD0D0"
980CELLSPACING="0"
981CELLPADDING="4"
982CLASS="CALSTABLE"
Daniel Veillardbed7b052001-05-19 14:59:49 +0000983><TBODY
Daniel Veillard3bff2b02000-10-01 20:33:47 +0000984><TR
985><TD
986WIDTH="20%"
987ALIGN="RIGHT"
988VALIGN="TOP"
989><TT
990CLASS="PARAMETER"
991><I
992>value</I
993></TT
Daniel Veillard3bbbe6f2001-05-03 11:15:37 +0000994>&nbsp;:</TD
Daniel Veillard3bff2b02000-10-01 20:33:47 +0000995><TD
996WIDTH="80%"
997ALIGN="LEFT"
998VALIGN="TOP"
Daniel Veillard4b8328d2001-07-05 22:48:42 +0000999> the entity's unicode value</TD
Daniel Veillard3bff2b02000-10-01 20:33:47 +00001000></TR
1001><TR
1002><TD
1003WIDTH="20%"
1004ALIGN="RIGHT"
1005VALIGN="TOP"
1006><I
1007CLASS="EMPHASIS"
1008>Returns</I
1009> :</TD
1010><TD
1011WIDTH="80%"
1012ALIGN="LEFT"
1013VALIGN="TOP"
Daniel Veillard4b8328d2001-07-05 22:48:42 +00001014>the associated htmlEntityDescPtr if found, NULL otherwise.</TD
Daniel Veillard3bff2b02000-10-01 20:33:47 +00001015></TR
Daniel Veillardbed7b052001-05-19 14:59:49 +00001016></TBODY
Daniel Veillard3bff2b02000-10-01 20:33:47 +00001017></TABLE
1018><P
1019></P
1020></DIV
1021></DIV
1022><HR><DIV
1023CLASS="REFSECT2"
1024><A
Daniel Veillarde7ead2d2001-08-22 23:44:09 +00001025NAME="AEN10564"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00001026></A
1027><H3
1028><A
1029NAME="HTMLISAUTOCLOSED"
1030></A
1031>htmlIsAutoClosed ()</H3
1032><TABLE
1033BORDER="0"
1034BGCOLOR="#D6E8FF"
1035WIDTH="100%"
1036CELLPADDING="6"
1037><TR
1038><TD
1039><PRE
1040CLASS="PROGRAMLISTING"
1041>int htmlIsAutoClosed (<A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +00001042HREF="libxml-htmlparser.html#HTMLDOCPTR"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00001043>htmlDocPtr</A
1044> doc,
1045 <A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +00001046HREF="libxml-htmlparser.html#HTMLNODEPTR"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00001047>htmlNodePtr</A
1048> elem);</PRE
1049></TD
1050></TR
1051></TABLE
1052><P
1053>The HTmL DtD allows a tag to implicitely close other tags.
1054The list is kept in htmlStartClose array. This function checks
1055if a tag is autoclosed by one of it's child</P
1056><P
1057></P
1058><DIV
1059CLASS="INFORMALTABLE"
Daniel Veillardbed7b052001-05-19 14:59:49 +00001060><A
Daniel Veillarde7ead2d2001-08-22 23:44:09 +00001061NAME="AEN10572"
Daniel Veillardbed7b052001-05-19 14:59:49 +00001062></A
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00001063><P
1064></P
1065><TABLE
1066BORDER="0"
1067WIDTH="100%"
1068BGCOLOR="#FFD0D0"
1069CELLSPACING="0"
1070CELLPADDING="4"
1071CLASS="CALSTABLE"
Daniel Veillardbed7b052001-05-19 14:59:49 +00001072><TBODY
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00001073><TR
1074><TD
1075WIDTH="20%"
1076ALIGN="RIGHT"
1077VALIGN="TOP"
1078><TT
1079CLASS="PARAMETER"
1080><I
1081>doc</I
1082></TT
Daniel Veillard3bbbe6f2001-05-03 11:15:37 +00001083>&nbsp;:</TD
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00001084><TD
1085WIDTH="80%"
1086ALIGN="LEFT"
1087VALIGN="TOP"
Daniel Veillard4b8328d2001-07-05 22:48:42 +00001088> the HTML document</TD
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00001089></TR
1090><TR
1091><TD
1092WIDTH="20%"
1093ALIGN="RIGHT"
1094VALIGN="TOP"
1095><TT
1096CLASS="PARAMETER"
1097><I
1098>elem</I
1099></TT
Daniel Veillard3bbbe6f2001-05-03 11:15:37 +00001100>&nbsp;:</TD
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00001101><TD
1102WIDTH="80%"
1103ALIGN="LEFT"
1104VALIGN="TOP"
Daniel Veillard4b8328d2001-07-05 22:48:42 +00001105> the HTML element</TD
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00001106></TR
1107><TR
1108><TD
1109WIDTH="20%"
1110ALIGN="RIGHT"
1111VALIGN="TOP"
1112><I
1113CLASS="EMPHASIS"
1114>Returns</I
1115> :</TD
1116><TD
1117WIDTH="80%"
1118ALIGN="LEFT"
1119VALIGN="TOP"
Daniel Veillard4b8328d2001-07-05 22:48:42 +00001120>1 if autoclosed, 0 otherwise</TD
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00001121></TR
Daniel Veillardbed7b052001-05-19 14:59:49 +00001122></TBODY
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00001123></TABLE
1124><P
1125></P
1126></DIV
1127></DIV
1128><HR><DIV
1129CLASS="REFSECT2"
1130><A
Daniel Veillarde7ead2d2001-08-22 23:44:09 +00001131NAME="AEN10589"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00001132></A
1133><H3
1134><A
1135NAME="HTMLAUTOCLOSETAG"
1136></A
1137>htmlAutoCloseTag ()</H3
1138><TABLE
1139BORDER="0"
1140BGCOLOR="#D6E8FF"
1141WIDTH="100%"
1142CELLPADDING="6"
1143><TR
1144><TD
1145><PRE
1146CLASS="PROGRAMLISTING"
1147>int htmlAutoCloseTag (<A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +00001148HREF="libxml-htmlparser.html#HTMLDOCPTR"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00001149>htmlDocPtr</A
1150> doc,
1151 const <A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +00001152HREF="libxml-tree.html#XMLCHAR"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00001153>xmlChar</A
1154> *name,
1155 <A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +00001156HREF="libxml-htmlparser.html#HTMLNODEPTR"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00001157>htmlNodePtr</A
1158> elem);</PRE
1159></TD
1160></TR
1161></TABLE
1162><P
1163>The HTmL DtD allows a tag to implicitely close other tags.
1164The list is kept in htmlStartClose array. This function checks
1165if the element or one of it's children would autoclose the
1166given tag.</P
1167><P
1168></P
1169><DIV
1170CLASS="INFORMALTABLE"
Daniel Veillardbed7b052001-05-19 14:59:49 +00001171><A
Daniel Veillarde7ead2d2001-08-22 23:44:09 +00001172NAME="AEN10598"
Daniel Veillardbed7b052001-05-19 14:59:49 +00001173></A
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00001174><P
1175></P
1176><TABLE
1177BORDER="0"
1178WIDTH="100%"
1179BGCOLOR="#FFD0D0"
1180CELLSPACING="0"
1181CELLPADDING="4"
1182CLASS="CALSTABLE"
Daniel Veillardbed7b052001-05-19 14:59:49 +00001183><TBODY
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00001184><TR
1185><TD
1186WIDTH="20%"
1187ALIGN="RIGHT"
1188VALIGN="TOP"
1189><TT
1190CLASS="PARAMETER"
1191><I
1192>doc</I
1193></TT
Daniel Veillard3bbbe6f2001-05-03 11:15:37 +00001194>&nbsp;:</TD
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00001195><TD
1196WIDTH="80%"
1197ALIGN="LEFT"
1198VALIGN="TOP"
Daniel Veillard4b8328d2001-07-05 22:48:42 +00001199> the HTML document</TD
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00001200></TR
1201><TR
1202><TD
1203WIDTH="20%"
1204ALIGN="RIGHT"
1205VALIGN="TOP"
1206><TT
1207CLASS="PARAMETER"
1208><I
1209>name</I
1210></TT
Daniel Veillard3bbbe6f2001-05-03 11:15:37 +00001211>&nbsp;:</TD
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00001212><TD
1213WIDTH="80%"
1214ALIGN="LEFT"
1215VALIGN="TOP"
Daniel Veillard4b8328d2001-07-05 22:48:42 +00001216> The tag name</TD
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00001217></TR
1218><TR
1219><TD
1220WIDTH="20%"
1221ALIGN="RIGHT"
1222VALIGN="TOP"
1223><TT
1224CLASS="PARAMETER"
1225><I
1226>elem</I
1227></TT
Daniel Veillard3bbbe6f2001-05-03 11:15:37 +00001228>&nbsp;:</TD
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00001229><TD
1230WIDTH="80%"
1231ALIGN="LEFT"
1232VALIGN="TOP"
Daniel Veillard4b8328d2001-07-05 22:48:42 +00001233> the HTML element</TD
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00001234></TR
1235><TR
1236><TD
1237WIDTH="20%"
1238ALIGN="RIGHT"
1239VALIGN="TOP"
1240><I
1241CLASS="EMPHASIS"
1242>Returns</I
1243> :</TD
1244><TD
1245WIDTH="80%"
1246ALIGN="LEFT"
1247VALIGN="TOP"
Daniel Veillard4b8328d2001-07-05 22:48:42 +00001248>1 if autoclose, 0 otherwise</TD
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00001249></TR
Daniel Veillardbed7b052001-05-19 14:59:49 +00001250></TBODY
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00001251></TABLE
1252><P
1253></P
1254></DIV
1255></DIV
1256><HR><DIV
1257CLASS="REFSECT2"
1258><A
Daniel Veillarde7ead2d2001-08-22 23:44:09 +00001259NAME="AEN10619"
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001260></A
1261><H3
1262><A
1263NAME="HTMLPARSEENTITYREF"
1264></A
1265>htmlParseEntityRef ()</H3
1266><TABLE
1267BORDER="0"
1268BGCOLOR="#D6E8FF"
1269WIDTH="100%"
1270CELLPADDING="6"
1271><TR
1272><TD
1273><PRE
1274CLASS="PROGRAMLISTING"
Daniel Veillarde7ead2d2001-08-22 23:44:09 +00001275>const <A
1276HREF="libxml-htmlparser.html#HTMLENTITYDESC"
1277>htmlEntityDesc</A
1278>* htmlParseEntityRef (<A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +00001279HREF="libxml-htmlparser.html#HTMLPARSERCTXTPTR"
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001280>htmlParserCtxtPtr</A
1281> ctxt,
1282 <A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +00001283HREF="libxml-tree.html#XMLCHAR"
Daniel Veillarddd6b3671999-09-23 22:19:22 +00001284>xmlChar</A
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001285> **str);</PRE
1286></TD
1287></TR
1288></TABLE
1289><P
1290>parse an HTML ENTITY references</P
1291><P
Daniel Veillard3bbbe6f2001-05-03 11:15:37 +00001292>[68] EntityRef ::= '&amp;' Name ';'</P
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001293><P
1294></P
1295><DIV
1296CLASS="INFORMALTABLE"
Daniel Veillardbed7b052001-05-19 14:59:49 +00001297><A
Daniel Veillarde7ead2d2001-08-22 23:44:09 +00001298NAME="AEN10629"
Daniel Veillardbed7b052001-05-19 14:59:49 +00001299></A
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001300><P
1301></P
1302><TABLE
1303BORDER="0"
1304WIDTH="100%"
1305BGCOLOR="#FFD0D0"
1306CELLSPACING="0"
1307CELLPADDING="4"
1308CLASS="CALSTABLE"
Daniel Veillardbed7b052001-05-19 14:59:49 +00001309><TBODY
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001310><TR
1311><TD
1312WIDTH="20%"
1313ALIGN="RIGHT"
1314VALIGN="TOP"
1315><TT
1316CLASS="PARAMETER"
1317><I
1318>ctxt</I
1319></TT
Daniel Veillard3bbbe6f2001-05-03 11:15:37 +00001320>&nbsp;:</TD
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001321><TD
1322WIDTH="80%"
1323ALIGN="LEFT"
1324VALIGN="TOP"
Daniel Veillard4b8328d2001-07-05 22:48:42 +00001325> an HTML parser context</TD
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001326></TR
1327><TR
1328><TD
1329WIDTH="20%"
1330ALIGN="RIGHT"
1331VALIGN="TOP"
1332><TT
1333CLASS="PARAMETER"
1334><I
1335>str</I
1336></TT
Daniel Veillard3bbbe6f2001-05-03 11:15:37 +00001337>&nbsp;:</TD
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001338><TD
1339WIDTH="80%"
1340ALIGN="LEFT"
1341VALIGN="TOP"
Daniel Veillard4b8328d2001-07-05 22:48:42 +00001342> location to store the entity name</TD
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001343></TR
1344><TR
1345><TD
1346WIDTH="20%"
1347ALIGN="RIGHT"
1348VALIGN="TOP"
1349><I
1350CLASS="EMPHASIS"
1351>Returns</I
1352> :</TD
1353><TD
1354WIDTH="80%"
1355ALIGN="LEFT"
1356VALIGN="TOP"
Daniel Veillard4b8328d2001-07-05 22:48:42 +00001357>the associated htmlEntityDescPtr if found, or NULL otherwise,
1358if non-NULL *str will have to be freed by the caller.</TD
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001359></TR
Daniel Veillardbed7b052001-05-19 14:59:49 +00001360></TBODY
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001361></TABLE
1362><P
1363></P
1364></DIV
1365></DIV
1366><HR><DIV
1367CLASS="REFSECT2"
1368><A
Daniel Veillarde7ead2d2001-08-22 23:44:09 +00001369NAME="AEN10646"
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001370></A
1371><H3
1372><A
1373NAME="HTMLPARSECHARREF"
1374></A
1375>htmlParseCharRef ()</H3
1376><TABLE
1377BORDER="0"
1378BGCOLOR="#D6E8FF"
1379WIDTH="100%"
1380CELLPADDING="6"
1381><TR
1382><TD
1383><PRE
1384CLASS="PROGRAMLISTING"
1385>int htmlParseCharRef (<A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +00001386HREF="libxml-htmlparser.html#HTMLPARSERCTXTPTR"
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001387>htmlParserCtxtPtr</A
1388> ctxt);</PRE
1389></TD
1390></TR
1391></TABLE
1392><P
1393>parse Reference declarations</P
1394><P
Daniel Veillard3bbbe6f2001-05-03 11:15:37 +00001395>[66] CharRef ::= '&amp;#' [0-9]+ ';' |
1396'&amp;<GTKDOCLINK
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001397HREF="X"
1398>x</GTKDOCLINK
1399>' [0-9a-fA-F]+ ';'</P
1400><P
1401></P
1402><DIV
1403CLASS="INFORMALTABLE"
Daniel Veillardbed7b052001-05-19 14:59:49 +00001404><A
Daniel Veillarde7ead2d2001-08-22 23:44:09 +00001405NAME="AEN10655"
Daniel Veillardbed7b052001-05-19 14:59:49 +00001406></A
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001407><P
1408></P
1409><TABLE
1410BORDER="0"
1411WIDTH="100%"
1412BGCOLOR="#FFD0D0"
1413CELLSPACING="0"
1414CELLPADDING="4"
1415CLASS="CALSTABLE"
Daniel Veillardbed7b052001-05-19 14:59:49 +00001416><TBODY
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001417><TR
1418><TD
1419WIDTH="20%"
1420ALIGN="RIGHT"
1421VALIGN="TOP"
1422><TT
1423CLASS="PARAMETER"
1424><I
1425>ctxt</I
1426></TT
Daniel Veillard3bbbe6f2001-05-03 11:15:37 +00001427>&nbsp;:</TD
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001428><TD
1429WIDTH="80%"
1430ALIGN="LEFT"
1431VALIGN="TOP"
Daniel Veillard4b8328d2001-07-05 22:48:42 +00001432> an HTML parser context</TD
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001433></TR
1434><TR
1435><TD
1436WIDTH="20%"
1437ALIGN="RIGHT"
1438VALIGN="TOP"
1439><I
1440CLASS="EMPHASIS"
1441>Returns</I
1442> :</TD
1443><TD
1444WIDTH="80%"
1445ALIGN="LEFT"
1446VALIGN="TOP"
Daniel Veillard4b8328d2001-07-05 22:48:42 +00001447>the value parsed (as an int)</TD
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001448></TR
Daniel Veillardbed7b052001-05-19 14:59:49 +00001449></TBODY
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001450></TABLE
1451><P
1452></P
1453></DIV
1454></DIV
1455><HR><DIV
1456CLASS="REFSECT2"
1457><A
Daniel Veillarde7ead2d2001-08-22 23:44:09 +00001458NAME="AEN10668"
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001459></A
1460><H3
1461><A
1462NAME="HTMLPARSEELEMENT"
1463></A
1464>htmlParseElement ()</H3
1465><TABLE
1466BORDER="0"
1467BGCOLOR="#D6E8FF"
1468WIDTH="100%"
1469CELLPADDING="6"
1470><TR
1471><TD
1472><PRE
1473CLASS="PROGRAMLISTING"
1474>void htmlParseElement (<A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +00001475HREF="libxml-htmlparser.html#HTMLPARSERCTXTPTR"
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001476>htmlParserCtxtPtr</A
1477> ctxt);</PRE
1478></TD
1479></TR
1480></TABLE
1481><P
1482>parse an HTML element, this is highly recursive</P
1483><P
1484>[39] element ::= EmptyElemTag | STag content ETag</P
1485><P
1486>[41] Attribute ::= Name Eq AttValue</P
1487><P
1488></P
1489><DIV
1490CLASS="INFORMALTABLE"
Daniel Veillardbed7b052001-05-19 14:59:49 +00001491><A
Daniel Veillarde7ead2d2001-08-22 23:44:09 +00001492NAME="AEN10677"
Daniel Veillardbed7b052001-05-19 14:59:49 +00001493></A
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001494><P
1495></P
1496><TABLE
1497BORDER="0"
1498WIDTH="100%"
1499BGCOLOR="#FFD0D0"
1500CELLSPACING="0"
1501CELLPADDING="4"
1502CLASS="CALSTABLE"
Daniel Veillardbed7b052001-05-19 14:59:49 +00001503><TBODY
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001504><TR
1505><TD
1506WIDTH="20%"
1507ALIGN="RIGHT"
1508VALIGN="TOP"
1509><TT
1510CLASS="PARAMETER"
1511><I
1512>ctxt</I
1513></TT
Daniel Veillard3bbbe6f2001-05-03 11:15:37 +00001514>&nbsp;:</TD
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001515><TD
1516WIDTH="80%"
1517ALIGN="LEFT"
1518VALIGN="TOP"
Daniel Veillard4b8328d2001-07-05 22:48:42 +00001519> an HTML parser context</TD
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001520></TR
Daniel Veillardbed7b052001-05-19 14:59:49 +00001521></TBODY
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001522></TABLE
1523><P
1524></P
1525></DIV
1526></DIV
1527><HR><DIV
1528CLASS="REFSECT2"
1529><A
Daniel Veillarde7ead2d2001-08-22 23:44:09 +00001530NAME="AEN10686"
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001531></A
1532><H3
1533><A
1534NAME="HTMLSAXPARSEDOC"
1535></A
1536>htmlSAXParseDoc ()</H3
1537><TABLE
1538BORDER="0"
1539BGCOLOR="#D6E8FF"
1540WIDTH="100%"
1541CELLPADDING="6"
1542><TR
1543><TD
1544><PRE
1545CLASS="PROGRAMLISTING"
1546><A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +00001547HREF="libxml-htmlparser.html#HTMLDOCPTR"
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001548>htmlDocPtr</A
1549> htmlSAXParseDoc (<A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +00001550HREF="libxml-tree.html#XMLCHAR"
Daniel Veillarddd6b3671999-09-23 22:19:22 +00001551>xmlChar</A
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001552> *cur,
1553 const char *encoding,
1554 <A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +00001555HREF="libxml-htmlparser.html#HTMLSAXHANDLERPTR"
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001556>htmlSAXHandlerPtr</A
1557> sax,
1558 void *userData);</PRE
1559></TD
1560></TR
1561></TABLE
1562><P
Daniel Veillard4b8328d2001-07-05 22:48:42 +00001563>Parse an HTML in-memory document. If sax is not NULL, use the SAX callbacks
1564to handle parse events. If sax is NULL, fallback to the default DOM
1565behavior and return a tree.</P
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001566><P
1567></P
1568><DIV
1569CLASS="INFORMALTABLE"
Daniel Veillardbed7b052001-05-19 14:59:49 +00001570><A
Daniel Veillarde7ead2d2001-08-22 23:44:09 +00001571NAME="AEN10695"
Daniel Veillardbed7b052001-05-19 14:59:49 +00001572></A
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001573><P
1574></P
1575><TABLE
1576BORDER="0"
1577WIDTH="100%"
1578BGCOLOR="#FFD0D0"
1579CELLSPACING="0"
1580CELLPADDING="4"
1581CLASS="CALSTABLE"
Daniel Veillardbed7b052001-05-19 14:59:49 +00001582><TBODY
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001583><TR
1584><TD
1585WIDTH="20%"
1586ALIGN="RIGHT"
1587VALIGN="TOP"
1588><TT
1589CLASS="PARAMETER"
1590><I
1591>cur</I
1592></TT
Daniel Veillard3bbbe6f2001-05-03 11:15:37 +00001593>&nbsp;:</TD
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001594><TD
1595WIDTH="80%"
1596ALIGN="LEFT"
1597VALIGN="TOP"
Daniel Veillard4b8328d2001-07-05 22:48:42 +00001598> a pointer to an array of xmlChar</TD
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001599></TR
1600><TR
1601><TD
1602WIDTH="20%"
1603ALIGN="RIGHT"
1604VALIGN="TOP"
1605><TT
1606CLASS="PARAMETER"
1607><I
1608>encoding</I
1609></TT
Daniel Veillard3bbbe6f2001-05-03 11:15:37 +00001610>&nbsp;:</TD
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001611><TD
1612WIDTH="80%"
1613ALIGN="LEFT"
1614VALIGN="TOP"
Daniel Veillard4b8328d2001-07-05 22:48:42 +00001615> a free form C string describing the HTML document encoding, or NULL</TD
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001616></TR
1617><TR
1618><TD
1619WIDTH="20%"
1620ALIGN="RIGHT"
1621VALIGN="TOP"
1622><TT
1623CLASS="PARAMETER"
1624><I
1625>sax</I
1626></TT
Daniel Veillard3bbbe6f2001-05-03 11:15:37 +00001627>&nbsp;:</TD
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001628><TD
1629WIDTH="80%"
1630ALIGN="LEFT"
1631VALIGN="TOP"
Daniel Veillard4b8328d2001-07-05 22:48:42 +00001632> the SAX handler block</TD
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001633></TR
1634><TR
1635><TD
1636WIDTH="20%"
1637ALIGN="RIGHT"
1638VALIGN="TOP"
1639><TT
1640CLASS="PARAMETER"
1641><I
1642>userData</I
1643></TT
Daniel Veillard3bbbe6f2001-05-03 11:15:37 +00001644>&nbsp;:</TD
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001645><TD
1646WIDTH="80%"
1647ALIGN="LEFT"
1648VALIGN="TOP"
Daniel Veillard4b8328d2001-07-05 22:48:42 +00001649> if using SAX, this pointer will be provided on callbacks. </TD
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001650></TR
1651><TR
1652><TD
1653WIDTH="20%"
1654ALIGN="RIGHT"
1655VALIGN="TOP"
1656><I
1657CLASS="EMPHASIS"
1658>Returns</I
1659> :</TD
1660><TD
1661WIDTH="80%"
1662ALIGN="LEFT"
1663VALIGN="TOP"
Daniel Veillard4b8328d2001-07-05 22:48:42 +00001664>the resulting document tree unless SAX is NULL or the document is
1665not well formed.</TD
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001666></TR
Daniel Veillardbed7b052001-05-19 14:59:49 +00001667></TBODY
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001668></TABLE
1669><P
1670></P
1671></DIV
1672></DIV
1673><HR><DIV
1674CLASS="REFSECT2"
1675><A
Daniel Veillarde7ead2d2001-08-22 23:44:09 +00001676NAME="AEN10720"
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001677></A
1678><H3
1679><A
1680NAME="HTMLPARSEDOC"
1681></A
1682>htmlParseDoc ()</H3
1683><TABLE
1684BORDER="0"
1685BGCOLOR="#D6E8FF"
1686WIDTH="100%"
1687CELLPADDING="6"
1688><TR
1689><TD
1690><PRE
1691CLASS="PROGRAMLISTING"
1692><A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +00001693HREF="libxml-htmlparser.html#HTMLDOCPTR"
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001694>htmlDocPtr</A
1695> htmlParseDoc (<A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +00001696HREF="libxml-tree.html#XMLCHAR"
Daniel Veillarddd6b3671999-09-23 22:19:22 +00001697>xmlChar</A
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001698> *cur,
1699 const char *encoding);</PRE
1700></TD
1701></TR
1702></TABLE
1703><P
1704>parse an HTML in-memory document and build a tree.</P
1705><P
1706></P
1707><DIV
1708CLASS="INFORMALTABLE"
Daniel Veillardbed7b052001-05-19 14:59:49 +00001709><A
Daniel Veillarde7ead2d2001-08-22 23:44:09 +00001710NAME="AEN10728"
Daniel Veillardbed7b052001-05-19 14:59:49 +00001711></A
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001712><P
1713></P
1714><TABLE
1715BORDER="0"
1716WIDTH="100%"
1717BGCOLOR="#FFD0D0"
1718CELLSPACING="0"
1719CELLPADDING="4"
1720CLASS="CALSTABLE"
Daniel Veillardbed7b052001-05-19 14:59:49 +00001721><TBODY
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001722><TR
1723><TD
1724WIDTH="20%"
1725ALIGN="RIGHT"
1726VALIGN="TOP"
1727><TT
1728CLASS="PARAMETER"
1729><I
1730>cur</I
1731></TT
Daniel Veillard3bbbe6f2001-05-03 11:15:37 +00001732>&nbsp;:</TD
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001733><TD
1734WIDTH="80%"
1735ALIGN="LEFT"
1736VALIGN="TOP"
Daniel Veillard4b8328d2001-07-05 22:48:42 +00001737> a pointer to an array of xmlChar</TD
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001738></TR
1739><TR
1740><TD
1741WIDTH="20%"
1742ALIGN="RIGHT"
1743VALIGN="TOP"
1744><TT
1745CLASS="PARAMETER"
1746><I
1747>encoding</I
1748></TT
Daniel Veillard3bbbe6f2001-05-03 11:15:37 +00001749>&nbsp;:</TD
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001750><TD
1751WIDTH="80%"
1752ALIGN="LEFT"
1753VALIGN="TOP"
Daniel Veillard4b8328d2001-07-05 22:48:42 +00001754> a free form C string describing the HTML document encoding, or NULL</TD
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001755></TR
1756><TR
1757><TD
1758WIDTH="20%"
1759ALIGN="RIGHT"
1760VALIGN="TOP"
1761><I
1762CLASS="EMPHASIS"
1763>Returns</I
1764> :</TD
1765><TD
1766WIDTH="80%"
1767ALIGN="LEFT"
1768VALIGN="TOP"
Daniel Veillard4b8328d2001-07-05 22:48:42 +00001769>the resulting document tree</TD
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001770></TR
Daniel Veillardbed7b052001-05-19 14:59:49 +00001771></TBODY
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001772></TABLE
1773><P
1774></P
1775></DIV
1776></DIV
1777><HR><DIV
1778CLASS="REFSECT2"
1779><A
Daniel Veillarde7ead2d2001-08-22 23:44:09 +00001780NAME="AEN10745"
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001781></A
1782><H3
1783><A
1784NAME="HTMLSAXPARSEFILE"
1785></A
1786>htmlSAXParseFile ()</H3
1787><TABLE
1788BORDER="0"
1789BGCOLOR="#D6E8FF"
1790WIDTH="100%"
1791CELLPADDING="6"
1792><TR
1793><TD
1794><PRE
1795CLASS="PROGRAMLISTING"
1796><A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +00001797HREF="libxml-htmlparser.html#HTMLDOCPTR"
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001798>htmlDocPtr</A
1799> htmlSAXParseFile (const char *filename,
1800 const char *encoding,
1801 <A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +00001802HREF="libxml-htmlparser.html#HTMLSAXHANDLERPTR"
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001803>htmlSAXHandlerPtr</A
1804> sax,
1805 void *userData);</PRE
1806></TD
1807></TR
1808></TABLE
1809><P
1810>parse an HTML file and build a tree. Automatic support for ZLIB/Compress
1811compressed document is provided by default if found at compile-time.
1812It use the given SAX function block to handle the parsing callback.
1813If sax is NULL, fallback to the default DOM tree building routines.</P
1814><P
1815></P
1816><DIV
1817CLASS="INFORMALTABLE"
Daniel Veillardbed7b052001-05-19 14:59:49 +00001818><A
Daniel Veillarde7ead2d2001-08-22 23:44:09 +00001819NAME="AEN10753"
Daniel Veillardbed7b052001-05-19 14:59:49 +00001820></A
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001821><P
1822></P
1823><TABLE
1824BORDER="0"
1825WIDTH="100%"
1826BGCOLOR="#FFD0D0"
1827CELLSPACING="0"
1828CELLPADDING="4"
1829CLASS="CALSTABLE"
Daniel Veillardbed7b052001-05-19 14:59:49 +00001830><TBODY
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001831><TR
1832><TD
1833WIDTH="20%"
1834ALIGN="RIGHT"
1835VALIGN="TOP"
1836><TT
1837CLASS="PARAMETER"
1838><I
1839>filename</I
1840></TT
Daniel Veillard3bbbe6f2001-05-03 11:15:37 +00001841>&nbsp;:</TD
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001842><TD
1843WIDTH="80%"
1844ALIGN="LEFT"
1845VALIGN="TOP"
Daniel Veillard4b8328d2001-07-05 22:48:42 +00001846> the filename</TD
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001847></TR
1848><TR
1849><TD
1850WIDTH="20%"
1851ALIGN="RIGHT"
1852VALIGN="TOP"
1853><TT
1854CLASS="PARAMETER"
1855><I
1856>encoding</I
1857></TT
Daniel Veillard3bbbe6f2001-05-03 11:15:37 +00001858>&nbsp;:</TD
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001859><TD
1860WIDTH="80%"
1861ALIGN="LEFT"
1862VALIGN="TOP"
Daniel Veillard4b8328d2001-07-05 22:48:42 +00001863> a free form C string describing the HTML document encoding, or NULL</TD
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001864></TR
1865><TR
1866><TD
1867WIDTH="20%"
1868ALIGN="RIGHT"
1869VALIGN="TOP"
1870><TT
1871CLASS="PARAMETER"
1872><I
1873>sax</I
1874></TT
Daniel Veillard3bbbe6f2001-05-03 11:15:37 +00001875>&nbsp;:</TD
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001876><TD
1877WIDTH="80%"
1878ALIGN="LEFT"
1879VALIGN="TOP"
Daniel Veillard4b8328d2001-07-05 22:48:42 +00001880> the SAX handler block</TD
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001881></TR
1882><TR
1883><TD
1884WIDTH="20%"
1885ALIGN="RIGHT"
1886VALIGN="TOP"
1887><TT
1888CLASS="PARAMETER"
1889><I
1890>userData</I
1891></TT
Daniel Veillard3bbbe6f2001-05-03 11:15:37 +00001892>&nbsp;:</TD
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001893><TD
1894WIDTH="80%"
1895ALIGN="LEFT"
1896VALIGN="TOP"
Daniel Veillard4b8328d2001-07-05 22:48:42 +00001897> if using SAX, this pointer will be provided on callbacks. </TD
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001898></TR
1899><TR
1900><TD
1901WIDTH="20%"
1902ALIGN="RIGHT"
1903VALIGN="TOP"
1904><I
1905CLASS="EMPHASIS"
1906>Returns</I
1907> :</TD
1908><TD
1909WIDTH="80%"
1910ALIGN="LEFT"
1911VALIGN="TOP"
Daniel Veillard4b8328d2001-07-05 22:48:42 +00001912>the resulting document tree unless SAX is NULL or the document is
1913not well formed.</TD
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001914></TR
Daniel Veillardbed7b052001-05-19 14:59:49 +00001915></TBODY
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001916></TABLE
1917><P
1918></P
1919></DIV
1920></DIV
1921><HR><DIV
1922CLASS="REFSECT2"
1923><A
Daniel Veillarde7ead2d2001-08-22 23:44:09 +00001924NAME="AEN10778"
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001925></A
1926><H3
1927><A
1928NAME="HTMLPARSEFILE"
1929></A
1930>htmlParseFile ()</H3
1931><TABLE
1932BORDER="0"
1933BGCOLOR="#D6E8FF"
1934WIDTH="100%"
1935CELLPADDING="6"
1936><TR
1937><TD
1938><PRE
1939CLASS="PROGRAMLISTING"
1940><A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +00001941HREF="libxml-htmlparser.html#HTMLDOCPTR"
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001942>htmlDocPtr</A
1943> htmlParseFile (const char *filename,
1944 const char *encoding);</PRE
1945></TD
1946></TR
1947></TABLE
1948><P
1949>parse an HTML file and build a tree. Automatic support for ZLIB/Compress
1950compressed document is provided by default if found at compile-time.</P
1951><P
1952></P
1953><DIV
1954CLASS="INFORMALTABLE"
Daniel Veillardbed7b052001-05-19 14:59:49 +00001955><A
Daniel Veillarde7ead2d2001-08-22 23:44:09 +00001956NAME="AEN10785"
Daniel Veillardbed7b052001-05-19 14:59:49 +00001957></A
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001958><P
1959></P
1960><TABLE
1961BORDER="0"
1962WIDTH="100%"
1963BGCOLOR="#FFD0D0"
1964CELLSPACING="0"
1965CELLPADDING="4"
1966CLASS="CALSTABLE"
Daniel Veillardbed7b052001-05-19 14:59:49 +00001967><TBODY
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001968><TR
1969><TD
1970WIDTH="20%"
1971ALIGN="RIGHT"
1972VALIGN="TOP"
1973><TT
1974CLASS="PARAMETER"
1975><I
1976>filename</I
1977></TT
Daniel Veillard3bbbe6f2001-05-03 11:15:37 +00001978>&nbsp;:</TD
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001979><TD
1980WIDTH="80%"
1981ALIGN="LEFT"
1982VALIGN="TOP"
Daniel Veillard4b8328d2001-07-05 22:48:42 +00001983> the filename</TD
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001984></TR
1985><TR
1986><TD
1987WIDTH="20%"
1988ALIGN="RIGHT"
1989VALIGN="TOP"
1990><TT
1991CLASS="PARAMETER"
1992><I
1993>encoding</I
1994></TT
Daniel Veillard3bbbe6f2001-05-03 11:15:37 +00001995>&nbsp;:</TD
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001996><TD
1997WIDTH="80%"
1998ALIGN="LEFT"
1999VALIGN="TOP"
Daniel Veillard4b8328d2001-07-05 22:48:42 +00002000> a free form C string describing the HTML document encoding, or NULL</TD
Daniel Veillard1566d3a1999-07-15 14:24:29 +00002001></TR
2002><TR
2003><TD
2004WIDTH="20%"
2005ALIGN="RIGHT"
2006VALIGN="TOP"
2007><I
2008CLASS="EMPHASIS"
2009>Returns</I
2010> :</TD
2011><TD
2012WIDTH="80%"
2013ALIGN="LEFT"
2014VALIGN="TOP"
Daniel Veillard4b8328d2001-07-05 22:48:42 +00002015>the resulting document tree</TD
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00002016></TR
Daniel Veillardbed7b052001-05-19 14:59:49 +00002017></TBODY
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00002018></TABLE
2019><P
2020></P
2021></DIV
2022></DIV
2023><HR><DIV
2024CLASS="REFSECT2"
2025><A
Daniel Veillarde7ead2d2001-08-22 23:44:09 +00002026NAME="AEN10802"
Daniel Veillarde46e20d2000-07-14 15:02:46 +00002027></A
2028><H3
2029><A
2030NAME="UTF8TOHTML"
2031></A
2032>UTF8ToHtml ()</H3
2033><TABLE
2034BORDER="0"
2035BGCOLOR="#D6E8FF"
2036WIDTH="100%"
2037CELLPADDING="6"
2038><TR
2039><TD
2040><PRE
2041CLASS="PROGRAMLISTING"
2042>int UTF8ToHtml (unsigned char *out,
2043 int *outlen,
2044 unsigned char *in,
2045 int *inlen);</PRE
2046></TD
2047></TR
2048></TABLE
2049><P
2050>Take a block of UTF-8 chars in and try to convert it to an ASCII
2051plus HTML entities block of chars out.</P
2052><P
2053></P
2054><DIV
2055CLASS="INFORMALTABLE"
Daniel Veillardbed7b052001-05-19 14:59:49 +00002056><A
Daniel Veillarde7ead2d2001-08-22 23:44:09 +00002057NAME="AEN10808"
Daniel Veillardbed7b052001-05-19 14:59:49 +00002058></A
Daniel Veillarde46e20d2000-07-14 15:02:46 +00002059><P
2060></P
2061><TABLE
2062BORDER="0"
2063WIDTH="100%"
2064BGCOLOR="#FFD0D0"
2065CELLSPACING="0"
2066CELLPADDING="4"
2067CLASS="CALSTABLE"
Daniel Veillardbed7b052001-05-19 14:59:49 +00002068><TBODY
Daniel Veillarde46e20d2000-07-14 15:02:46 +00002069><TR
2070><TD
2071WIDTH="20%"
2072ALIGN="RIGHT"
2073VALIGN="TOP"
2074><TT
2075CLASS="PARAMETER"
2076><I
2077>out</I
2078></TT
Daniel Veillard3bbbe6f2001-05-03 11:15:37 +00002079>&nbsp;:</TD
Daniel Veillarde46e20d2000-07-14 15:02:46 +00002080><TD
2081WIDTH="80%"
2082ALIGN="LEFT"
2083VALIGN="TOP"
Daniel Veillard4b8328d2001-07-05 22:48:42 +00002084> a pointer to an array of bytes to store the result</TD
Daniel Veillarde46e20d2000-07-14 15:02:46 +00002085></TR
2086><TR
2087><TD
2088WIDTH="20%"
2089ALIGN="RIGHT"
2090VALIGN="TOP"
2091><TT
2092CLASS="PARAMETER"
2093><I
2094>outlen</I
2095></TT
Daniel Veillard3bbbe6f2001-05-03 11:15:37 +00002096>&nbsp;:</TD
Daniel Veillarde46e20d2000-07-14 15:02:46 +00002097><TD
2098WIDTH="80%"
2099ALIGN="LEFT"
2100VALIGN="TOP"
Daniel Veillard4b8328d2001-07-05 22:48:42 +00002101> the length of <TT
2102CLASS="PARAMETER"
2103><I
2104>out</I
2105></TT
2106></TD
Daniel Veillarde46e20d2000-07-14 15:02:46 +00002107></TR
2108><TR
2109><TD
2110WIDTH="20%"
2111ALIGN="RIGHT"
2112VALIGN="TOP"
2113><TT
2114CLASS="PARAMETER"
2115><I
2116>in</I
2117></TT
Daniel Veillard3bbbe6f2001-05-03 11:15:37 +00002118>&nbsp;:</TD
Daniel Veillarde46e20d2000-07-14 15:02:46 +00002119><TD
2120WIDTH="80%"
2121ALIGN="LEFT"
2122VALIGN="TOP"
Daniel Veillard4b8328d2001-07-05 22:48:42 +00002123> a pointer to an array of UTF-8 chars</TD
Daniel Veillarde46e20d2000-07-14 15:02:46 +00002124></TR
2125><TR
2126><TD
2127WIDTH="20%"
2128ALIGN="RIGHT"
2129VALIGN="TOP"
2130><TT
2131CLASS="PARAMETER"
2132><I
2133>inlen</I
2134></TT
Daniel Veillard3bbbe6f2001-05-03 11:15:37 +00002135>&nbsp;:</TD
Daniel Veillarde46e20d2000-07-14 15:02:46 +00002136><TD
2137WIDTH="80%"
2138ALIGN="LEFT"
2139VALIGN="TOP"
Daniel Veillard4b8328d2001-07-05 22:48:42 +00002140> the length of <TT
2141CLASS="PARAMETER"
2142><I
2143>in</I
2144></TT
2145></TD
Daniel Veillarde46e20d2000-07-14 15:02:46 +00002146></TR
2147><TR
2148><TD
2149WIDTH="20%"
2150ALIGN="RIGHT"
2151VALIGN="TOP"
2152><I
2153CLASS="EMPHASIS"
2154>Returns</I
2155> :</TD
2156><TD
2157WIDTH="80%"
2158ALIGN="LEFT"
2159VALIGN="TOP"
Daniel Veillard4b8328d2001-07-05 22:48:42 +00002160>0 if success, -2 if the transcoding fails, or -1 otherwise
2161The value of <TT
2162CLASS="PARAMETER"
2163><I
2164>inlen</I
2165></TT
2166> after return is the number of octets consumed
2167as the return value is positive, else unpredictiable.
2168The value of <TT
2169CLASS="PARAMETER"
2170><I
2171>outlen</I
2172></TT
2173> after return is the number of octets consumed.</TD
Daniel Veillarde46e20d2000-07-14 15:02:46 +00002174></TR
Daniel Veillardbed7b052001-05-19 14:59:49 +00002175></TBODY
Daniel Veillarde46e20d2000-07-14 15:02:46 +00002176></TABLE
2177><P
2178></P
2179></DIV
2180></DIV
2181><HR><DIV
2182CLASS="REFSECT2"
2183><A
Daniel Veillarde7ead2d2001-08-22 23:44:09 +00002184NAME="AEN10837"
Daniel Veillard3bff2b02000-10-01 20:33:47 +00002185></A
2186><H3
2187><A
2188NAME="HTMLENCODEENTITIES"
2189></A
2190>htmlEncodeEntities ()</H3
2191><TABLE
2192BORDER="0"
2193BGCOLOR="#D6E8FF"
2194WIDTH="100%"
2195CELLPADDING="6"
2196><TR
2197><TD
2198><PRE
2199CLASS="PROGRAMLISTING"
2200>int htmlEncodeEntities (unsigned char *out,
2201 int *outlen,
2202 unsigned char *in,
2203 int *inlen,
2204 int quoteChar);</PRE
2205></TD
2206></TR
2207></TABLE
2208><P
2209>Take a block of UTF-8 chars in and try to convert it to an ASCII
2210plus HTML entities block of chars out.</P
2211><P
2212></P
2213><DIV
2214CLASS="INFORMALTABLE"
Daniel Veillardbed7b052001-05-19 14:59:49 +00002215><A
Daniel Veillarde7ead2d2001-08-22 23:44:09 +00002216NAME="AEN10843"
Daniel Veillardbed7b052001-05-19 14:59:49 +00002217></A
Daniel Veillard3bff2b02000-10-01 20:33:47 +00002218><P
2219></P
2220><TABLE
2221BORDER="0"
2222WIDTH="100%"
2223BGCOLOR="#FFD0D0"
2224CELLSPACING="0"
2225CELLPADDING="4"
2226CLASS="CALSTABLE"
Daniel Veillardbed7b052001-05-19 14:59:49 +00002227><TBODY
Daniel Veillard3bff2b02000-10-01 20:33:47 +00002228><TR
2229><TD
2230WIDTH="20%"
2231ALIGN="RIGHT"
2232VALIGN="TOP"
2233><TT
2234CLASS="PARAMETER"
2235><I
2236>out</I
2237></TT
Daniel Veillard3bbbe6f2001-05-03 11:15:37 +00002238>&nbsp;:</TD
Daniel Veillard3bff2b02000-10-01 20:33:47 +00002239><TD
2240WIDTH="80%"
2241ALIGN="LEFT"
2242VALIGN="TOP"
Daniel Veillard4b8328d2001-07-05 22:48:42 +00002243> a pointer to an array of bytes to store the result</TD
Daniel Veillard3bff2b02000-10-01 20:33:47 +00002244></TR
2245><TR
2246><TD
2247WIDTH="20%"
2248ALIGN="RIGHT"
2249VALIGN="TOP"
2250><TT
2251CLASS="PARAMETER"
2252><I
2253>outlen</I
2254></TT
Daniel Veillard3bbbe6f2001-05-03 11:15:37 +00002255>&nbsp;:</TD
Daniel Veillard3bff2b02000-10-01 20:33:47 +00002256><TD
2257WIDTH="80%"
2258ALIGN="LEFT"
2259VALIGN="TOP"
Daniel Veillard4b8328d2001-07-05 22:48:42 +00002260> the length of <TT
2261CLASS="PARAMETER"
2262><I
2263>out</I
2264></TT
2265></TD
Daniel Veillard3bff2b02000-10-01 20:33:47 +00002266></TR
2267><TR
2268><TD
2269WIDTH="20%"
2270ALIGN="RIGHT"
2271VALIGN="TOP"
2272><TT
2273CLASS="PARAMETER"
2274><I
2275>in</I
2276></TT
Daniel Veillard3bbbe6f2001-05-03 11:15:37 +00002277>&nbsp;:</TD
Daniel Veillard3bff2b02000-10-01 20:33:47 +00002278><TD
2279WIDTH="80%"
2280ALIGN="LEFT"
2281VALIGN="TOP"
Daniel Veillard4b8328d2001-07-05 22:48:42 +00002282> a pointer to an array of UTF-8 chars</TD
Daniel Veillard3bff2b02000-10-01 20:33:47 +00002283></TR
2284><TR
2285><TD
2286WIDTH="20%"
2287ALIGN="RIGHT"
2288VALIGN="TOP"
2289><TT
2290CLASS="PARAMETER"
2291><I
2292>inlen</I
2293></TT
Daniel Veillard3bbbe6f2001-05-03 11:15:37 +00002294>&nbsp;:</TD
Daniel Veillard3bff2b02000-10-01 20:33:47 +00002295><TD
2296WIDTH="80%"
2297ALIGN="LEFT"
2298VALIGN="TOP"
Daniel Veillard4b8328d2001-07-05 22:48:42 +00002299> the length of <TT
2300CLASS="PARAMETER"
2301><I
2302>in</I
2303></TT
2304></TD
Daniel Veillard3bff2b02000-10-01 20:33:47 +00002305></TR
2306><TR
2307><TD
2308WIDTH="20%"
2309ALIGN="RIGHT"
2310VALIGN="TOP"
2311><TT
2312CLASS="PARAMETER"
2313><I
2314>quoteChar</I
2315></TT
Daniel Veillard3bbbe6f2001-05-03 11:15:37 +00002316>&nbsp;:</TD
Daniel Veillard3bff2b02000-10-01 20:33:47 +00002317><TD
2318WIDTH="80%"
2319ALIGN="LEFT"
2320VALIGN="TOP"
Daniel Veillard4b8328d2001-07-05 22:48:42 +00002321> the quote character to escape (' or ") or zero.</TD
Daniel Veillard3bff2b02000-10-01 20:33:47 +00002322></TR
2323><TR
2324><TD
2325WIDTH="20%"
2326ALIGN="RIGHT"
2327VALIGN="TOP"
2328><I
2329CLASS="EMPHASIS"
2330>Returns</I
2331> :</TD
2332><TD
2333WIDTH="80%"
2334ALIGN="LEFT"
2335VALIGN="TOP"
Daniel Veillard4b8328d2001-07-05 22:48:42 +00002336>0 if success, -2 if the transcoding fails, or -1 otherwise
2337The value of <TT
2338CLASS="PARAMETER"
2339><I
2340>inlen</I
2341></TT
2342> after return is the number of octets consumed
2343as the return value is positive, else unpredictiable.
2344The value of <TT
2345CLASS="PARAMETER"
2346><I
2347>outlen</I
2348></TT
2349> after return is the number of octets consumed.</TD
Daniel Veillard3bff2b02000-10-01 20:33:47 +00002350></TR
Daniel Veillardbed7b052001-05-19 14:59:49 +00002351></TBODY
Daniel Veillard3bff2b02000-10-01 20:33:47 +00002352></TABLE
2353><P
2354></P
2355></DIV
2356></DIV
2357><HR><DIV
2358CLASS="REFSECT2"
2359><A
Daniel Veillarde7ead2d2001-08-22 23:44:09 +00002360NAME="AEN10876"
Daniel Veillard29a11cc2000-10-25 13:32:39 +00002361></A
2362><H3
2363><A
2364NAME="HTMLISSCRIPTATTRIBUTE"
2365></A
2366>htmlIsScriptAttribute ()</H3
2367><TABLE
2368BORDER="0"
2369BGCOLOR="#D6E8FF"
2370WIDTH="100%"
2371CELLPADDING="6"
2372><TR
2373><TD
2374><PRE
2375CLASS="PROGRAMLISTING"
2376>int htmlIsScriptAttribute (const <A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +00002377HREF="libxml-tree.html#XMLCHAR"
Daniel Veillard29a11cc2000-10-25 13:32:39 +00002378>xmlChar</A
2379> *name);</PRE
2380></TD
2381></TR
2382></TABLE
2383><P
2384>Check if an attribute is of content type Script</P
2385><P
2386></P
2387><DIV
2388CLASS="INFORMALTABLE"
Daniel Veillardbed7b052001-05-19 14:59:49 +00002389><A
Daniel Veillarde7ead2d2001-08-22 23:44:09 +00002390NAME="AEN10883"
Daniel Veillardbed7b052001-05-19 14:59:49 +00002391></A
Daniel Veillard29a11cc2000-10-25 13:32:39 +00002392><P
2393></P
2394><TABLE
2395BORDER="0"
2396WIDTH="100%"
2397BGCOLOR="#FFD0D0"
2398CELLSPACING="0"
2399CELLPADDING="4"
2400CLASS="CALSTABLE"
Daniel Veillardbed7b052001-05-19 14:59:49 +00002401><TBODY
Daniel Veillard29a11cc2000-10-25 13:32:39 +00002402><TR
2403><TD
2404WIDTH="20%"
2405ALIGN="RIGHT"
2406VALIGN="TOP"
2407><TT
2408CLASS="PARAMETER"
2409><I
2410>name</I
2411></TT
Daniel Veillard3bbbe6f2001-05-03 11:15:37 +00002412>&nbsp;:</TD
Daniel Veillard29a11cc2000-10-25 13:32:39 +00002413><TD
2414WIDTH="80%"
2415ALIGN="LEFT"
2416VALIGN="TOP"
Daniel Veillard4b8328d2001-07-05 22:48:42 +00002417> an attribute name</TD
Daniel Veillard29a11cc2000-10-25 13:32:39 +00002418></TR
2419><TR
2420><TD
2421WIDTH="20%"
2422ALIGN="RIGHT"
2423VALIGN="TOP"
2424><I
2425CLASS="EMPHASIS"
2426>Returns</I
2427> :</TD
2428><TD
2429WIDTH="80%"
2430ALIGN="LEFT"
2431VALIGN="TOP"
Daniel Veillard4b8328d2001-07-05 22:48:42 +00002432>1 is the attribute is a script 0 otherwise</TD
Daniel Veillard29a11cc2000-10-25 13:32:39 +00002433></TR
Daniel Veillardbed7b052001-05-19 14:59:49 +00002434></TBODY
Daniel Veillard29a11cc2000-10-25 13:32:39 +00002435></TABLE
2436><P
2437></P
2438></DIV
2439></DIV
2440><HR><DIV
2441CLASS="REFSECT2"
2442><A
Daniel Veillarde7ead2d2001-08-22 23:44:09 +00002443NAME="AEN10896"
Daniel Veillard503b8932001-01-05 06:36:31 +00002444></A
2445><H3
2446><A
2447NAME="HTMLHANDLEOMITTEDELEM"
2448></A
2449>htmlHandleOmittedElem ()</H3
2450><TABLE
2451BORDER="0"
2452BGCOLOR="#D6E8FF"
2453WIDTH="100%"
2454CELLPADDING="6"
2455><TR
2456><TD
2457><PRE
2458CLASS="PROGRAMLISTING"
2459>int htmlHandleOmittedElem (int val);</PRE
2460></TD
2461></TR
2462></TABLE
2463><P
2464>Set and return the previous value for handling HTML omitted tags.</P
2465><P
2466></P
2467><DIV
2468CLASS="INFORMALTABLE"
Daniel Veillardbed7b052001-05-19 14:59:49 +00002469><A
Daniel Veillarde7ead2d2001-08-22 23:44:09 +00002470NAME="AEN10902"
Daniel Veillardbed7b052001-05-19 14:59:49 +00002471></A
Daniel Veillard503b8932001-01-05 06:36:31 +00002472><P
2473></P
2474><TABLE
2475BORDER="0"
2476WIDTH="100%"
2477BGCOLOR="#FFD0D0"
2478CELLSPACING="0"
2479CELLPADDING="4"
2480CLASS="CALSTABLE"
Daniel Veillardbed7b052001-05-19 14:59:49 +00002481><TBODY
Daniel Veillard503b8932001-01-05 06:36:31 +00002482><TR
2483><TD
2484WIDTH="20%"
2485ALIGN="RIGHT"
2486VALIGN="TOP"
2487><TT
2488CLASS="PARAMETER"
2489><I
2490>val</I
2491></TT
Daniel Veillard3bbbe6f2001-05-03 11:15:37 +00002492>&nbsp;:</TD
Daniel Veillard503b8932001-01-05 06:36:31 +00002493><TD
2494WIDTH="80%"
2495ALIGN="LEFT"
2496VALIGN="TOP"
Daniel Veillard4b8328d2001-07-05 22:48:42 +00002497> int 0 or 1 </TD
Daniel Veillard503b8932001-01-05 06:36:31 +00002498></TR
2499><TR
2500><TD
2501WIDTH="20%"
2502ALIGN="RIGHT"
2503VALIGN="TOP"
2504><I
2505CLASS="EMPHASIS"
2506>Returns</I
2507> :</TD
2508><TD
2509WIDTH="80%"
2510ALIGN="LEFT"
2511VALIGN="TOP"
Daniel Veillard4b8328d2001-07-05 22:48:42 +00002512>the last value for 0 for no handling, 1 for auto insertion.</TD
Daniel Veillard503b8932001-01-05 06:36:31 +00002513></TR
Daniel Veillardbed7b052001-05-19 14:59:49 +00002514></TBODY
Daniel Veillard503b8932001-01-05 06:36:31 +00002515></TABLE
2516><P
2517></P
2518></DIV
2519></DIV
2520><HR><DIV
2521CLASS="REFSECT2"
2522><A
Daniel Veillarde7ead2d2001-08-22 23:44:09 +00002523NAME="AEN10915"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00002524></A
2525><H3
2526><A
2527NAME="HTMLFREEPARSERCTXT"
2528></A
2529>htmlFreeParserCtxt ()</H3
2530><TABLE
2531BORDER="0"
2532BGCOLOR="#D6E8FF"
2533WIDTH="100%"
2534CELLPADDING="6"
2535><TR
2536><TD
2537><PRE
2538CLASS="PROGRAMLISTING"
2539>void htmlFreeParserCtxt (<A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +00002540HREF="libxml-htmlparser.html#HTMLPARSERCTXTPTR"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00002541>htmlParserCtxtPtr</A
2542> ctxt);</PRE
2543></TD
2544></TR
2545></TABLE
2546><P
2547>Free all the memory used by a parser context. However the parsed
Daniel Veillard3bbbe6f2001-05-03 11:15:37 +00002548document in ctxt-&gt;myDoc is not freed.</P
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00002549><P
2550></P
2551><DIV
2552CLASS="INFORMALTABLE"
Daniel Veillardbed7b052001-05-19 14:59:49 +00002553><A
Daniel Veillarde7ead2d2001-08-22 23:44:09 +00002554NAME="AEN10922"
Daniel Veillardbed7b052001-05-19 14:59:49 +00002555></A
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00002556><P
2557></P
2558><TABLE
2559BORDER="0"
2560WIDTH="100%"
2561BGCOLOR="#FFD0D0"
2562CELLSPACING="0"
2563CELLPADDING="4"
2564CLASS="CALSTABLE"
Daniel Veillardbed7b052001-05-19 14:59:49 +00002565><TBODY
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00002566><TR
2567><TD
2568WIDTH="20%"
2569ALIGN="RIGHT"
2570VALIGN="TOP"
2571><TT
2572CLASS="PARAMETER"
2573><I
2574>ctxt</I
2575></TT
Daniel Veillard3bbbe6f2001-05-03 11:15:37 +00002576>&nbsp;:</TD
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00002577><TD
2578WIDTH="80%"
2579ALIGN="LEFT"
2580VALIGN="TOP"
Daniel Veillard4b8328d2001-07-05 22:48:42 +00002581> an HTML parser context</TD
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00002582></TR
Daniel Veillardbed7b052001-05-19 14:59:49 +00002583></TBODY
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00002584></TABLE
2585><P
2586></P
2587></DIV
2588></DIV
2589><HR><DIV
2590CLASS="REFSECT2"
2591><A
Daniel Veillarde7ead2d2001-08-22 23:44:09 +00002592NAME="AEN10931"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00002593></A
2594><H3
2595><A
2596NAME="HTMLCREATEPUSHPARSERCTXT"
2597></A
2598>htmlCreatePushParserCtxt ()</H3
2599><TABLE
2600BORDER="0"
2601BGCOLOR="#D6E8FF"
2602WIDTH="100%"
2603CELLPADDING="6"
2604><TR
2605><TD
2606><PRE
2607CLASS="PROGRAMLISTING"
2608><A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +00002609HREF="libxml-htmlparser.html#HTMLPARSERCTXTPTR"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00002610>htmlParserCtxtPtr</A
2611> htmlCreatePushParserCtxt (<A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +00002612HREF="libxml-htmlparser.html#HTMLSAXHANDLERPTR"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00002613>htmlSAXHandlerPtr</A
2614> sax,
2615 void *user_data,
2616 const char *chunk,
2617 int size,
2618 const char *filename,
2619 <A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +00002620HREF="libxml-encoding.html#XMLCHARENCODING"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00002621>xmlCharEncoding</A
2622> enc);</PRE
2623></TD
2624></TR
2625></TABLE
2626><P
2627>Create a parser context for using the HTML parser in push mode
2628To allow content encoding detection, <TT
2629CLASS="PARAMETER"
2630><I
2631>size</I
2632></TT
Daniel Veillard3bbbe6f2001-05-03 11:15:37 +00002633> should be &gt;= 4
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00002634The value of <TT
2635CLASS="PARAMETER"
2636><I
2637>filename</I
2638></TT
2639> is used for fetching external entities
2640and error/warning reports.</P
2641><P
2642></P
2643><DIV
2644CLASS="INFORMALTABLE"
Daniel Veillardbed7b052001-05-19 14:59:49 +00002645><A
Daniel Veillarde7ead2d2001-08-22 23:44:09 +00002646NAME="AEN10942"
Daniel Veillardbed7b052001-05-19 14:59:49 +00002647></A
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00002648><P
2649></P
2650><TABLE
2651BORDER="0"
2652WIDTH="100%"
2653BGCOLOR="#FFD0D0"
2654CELLSPACING="0"
2655CELLPADDING="4"
2656CLASS="CALSTABLE"
Daniel Veillardbed7b052001-05-19 14:59:49 +00002657><TBODY
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00002658><TR
2659><TD
2660WIDTH="20%"
2661ALIGN="RIGHT"
2662VALIGN="TOP"
2663><TT
2664CLASS="PARAMETER"
2665><I
2666>sax</I
2667></TT
Daniel Veillard3bbbe6f2001-05-03 11:15:37 +00002668>&nbsp;:</TD
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00002669><TD
2670WIDTH="80%"
2671ALIGN="LEFT"
2672VALIGN="TOP"
Daniel Veillard4b8328d2001-07-05 22:48:42 +00002673> a SAX handler</TD
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00002674></TR
2675><TR
2676><TD
2677WIDTH="20%"
2678ALIGN="RIGHT"
2679VALIGN="TOP"
2680><TT
2681CLASS="PARAMETER"
2682><I
2683>user_data</I
2684></TT
Daniel Veillard3bbbe6f2001-05-03 11:15:37 +00002685>&nbsp;:</TD
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00002686><TD
2687WIDTH="80%"
2688ALIGN="LEFT"
2689VALIGN="TOP"
Daniel Veillard4b8328d2001-07-05 22:48:42 +00002690> The user data returned on SAX callbacks</TD
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00002691></TR
2692><TR
2693><TD
2694WIDTH="20%"
2695ALIGN="RIGHT"
2696VALIGN="TOP"
2697><TT
2698CLASS="PARAMETER"
2699><I
2700>chunk</I
2701></TT
Daniel Veillard3bbbe6f2001-05-03 11:15:37 +00002702>&nbsp;:</TD
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00002703><TD
2704WIDTH="80%"
2705ALIGN="LEFT"
2706VALIGN="TOP"
Daniel Veillard4b8328d2001-07-05 22:48:42 +00002707> a pointer to an array of chars</TD
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00002708></TR
2709><TR
2710><TD
2711WIDTH="20%"
2712ALIGN="RIGHT"
2713VALIGN="TOP"
2714><TT
2715CLASS="PARAMETER"
2716><I
2717>size</I
2718></TT
Daniel Veillard3bbbe6f2001-05-03 11:15:37 +00002719>&nbsp;:</TD
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00002720><TD
2721WIDTH="80%"
2722ALIGN="LEFT"
2723VALIGN="TOP"
Daniel Veillard4b8328d2001-07-05 22:48:42 +00002724> number of chars in the array</TD
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00002725></TR
2726><TR
2727><TD
2728WIDTH="20%"
2729ALIGN="RIGHT"
2730VALIGN="TOP"
2731><TT
2732CLASS="PARAMETER"
2733><I
2734>filename</I
2735></TT
Daniel Veillard3bbbe6f2001-05-03 11:15:37 +00002736>&nbsp;:</TD
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00002737><TD
2738WIDTH="80%"
2739ALIGN="LEFT"
2740VALIGN="TOP"
Daniel Veillard4b8328d2001-07-05 22:48:42 +00002741> an optional file name or URI</TD
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00002742></TR
2743><TR
2744><TD
2745WIDTH="20%"
2746ALIGN="RIGHT"
2747VALIGN="TOP"
2748><TT
2749CLASS="PARAMETER"
2750><I
2751>enc</I
2752></TT
Daniel Veillard3bbbe6f2001-05-03 11:15:37 +00002753>&nbsp;:</TD
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00002754><TD
2755WIDTH="80%"
2756ALIGN="LEFT"
2757VALIGN="TOP"
Daniel Veillard4b8328d2001-07-05 22:48:42 +00002758> an optional encoding</TD
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00002759></TR
2760><TR
2761><TD
2762WIDTH="20%"
2763ALIGN="RIGHT"
2764VALIGN="TOP"
2765><I
2766CLASS="EMPHASIS"
2767>Returns</I
2768> :</TD
2769><TD
2770WIDTH="80%"
2771ALIGN="LEFT"
2772VALIGN="TOP"
Daniel Veillard4b8328d2001-07-05 22:48:42 +00002773>the new parser context or NULL</TD
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00002774></TR
Daniel Veillardbed7b052001-05-19 14:59:49 +00002775></TBODY
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00002776></TABLE
2777><P
2778></P
2779></DIV
2780></DIV
2781><HR><DIV
2782CLASS="REFSECT2"
2783><A
Daniel Veillarde7ead2d2001-08-22 23:44:09 +00002784NAME="AEN10975"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00002785></A
2786><H3
2787><A
2788NAME="HTMLPARSECHUNK"
2789></A
2790>htmlParseChunk ()</H3
2791><TABLE
2792BORDER="0"
2793BGCOLOR="#D6E8FF"
2794WIDTH="100%"
2795CELLPADDING="6"
2796><TR
2797><TD
2798><PRE
2799CLASS="PROGRAMLISTING"
2800>int htmlParseChunk (<A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +00002801HREF="libxml-htmlparser.html#HTMLPARSERCTXTPTR"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00002802>htmlParserCtxtPtr</A
2803> ctxt,
2804 const char *chunk,
2805 int size,
2806 int terminate);</PRE
2807></TD
2808></TR
2809></TABLE
2810><P
2811>Parse a Chunk of memory</P
2812><P
2813></P
2814><DIV
2815CLASS="INFORMALTABLE"
Daniel Veillardbed7b052001-05-19 14:59:49 +00002816><A
Daniel Veillarde7ead2d2001-08-22 23:44:09 +00002817NAME="AEN10982"
Daniel Veillardbed7b052001-05-19 14:59:49 +00002818></A
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00002819><P
2820></P
2821><TABLE
2822BORDER="0"
2823WIDTH="100%"
2824BGCOLOR="#FFD0D0"
2825CELLSPACING="0"
2826CELLPADDING="4"
2827CLASS="CALSTABLE"
Daniel Veillardbed7b052001-05-19 14:59:49 +00002828><TBODY
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00002829><TR
2830><TD
2831WIDTH="20%"
2832ALIGN="RIGHT"
2833VALIGN="TOP"
2834><TT
2835CLASS="PARAMETER"
2836><I
2837>ctxt</I
2838></TT
Daniel Veillard3bbbe6f2001-05-03 11:15:37 +00002839>&nbsp;:</TD
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00002840><TD
2841WIDTH="80%"
2842ALIGN="LEFT"
2843VALIGN="TOP"
Daniel Veillard4b8328d2001-07-05 22:48:42 +00002844> an XML parser context</TD
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00002845></TR
2846><TR
2847><TD
2848WIDTH="20%"
2849ALIGN="RIGHT"
2850VALIGN="TOP"
2851><TT
2852CLASS="PARAMETER"
2853><I
2854>chunk</I
2855></TT
Daniel Veillard3bbbe6f2001-05-03 11:15:37 +00002856>&nbsp;:</TD
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00002857><TD
2858WIDTH="80%"
2859ALIGN="LEFT"
2860VALIGN="TOP"
Daniel Veillard4b8328d2001-07-05 22:48:42 +00002861> an char array</TD
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00002862></TR
2863><TR
2864><TD
2865WIDTH="20%"
2866ALIGN="RIGHT"
2867VALIGN="TOP"
2868><TT
2869CLASS="PARAMETER"
2870><I
2871>size</I
2872></TT
Daniel Veillard3bbbe6f2001-05-03 11:15:37 +00002873>&nbsp;:</TD
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00002874><TD
2875WIDTH="80%"
2876ALIGN="LEFT"
2877VALIGN="TOP"
Daniel Veillard4b8328d2001-07-05 22:48:42 +00002878> the size in byte of the chunk</TD
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00002879></TR
2880><TR
2881><TD
2882WIDTH="20%"
2883ALIGN="RIGHT"
2884VALIGN="TOP"
2885><TT
2886CLASS="PARAMETER"
2887><I
2888>terminate</I
2889></TT
Daniel Veillard3bbbe6f2001-05-03 11:15:37 +00002890>&nbsp;:</TD
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00002891><TD
2892WIDTH="80%"
2893ALIGN="LEFT"
2894VALIGN="TOP"
Daniel Veillard4b8328d2001-07-05 22:48:42 +00002895> last chunk indicator</TD
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00002896></TR
2897><TR
2898><TD
2899WIDTH="20%"
2900ALIGN="RIGHT"
2901VALIGN="TOP"
2902><I
2903CLASS="EMPHASIS"
2904>Returns</I
2905> :</TD
2906><TD
2907WIDTH="80%"
2908ALIGN="LEFT"
2909VALIGN="TOP"
Daniel Veillard4b8328d2001-07-05 22:48:42 +00002910>zero if no error, the xmlParserErrors otherwise.</TD
Daniel Veillard437b87b2000-01-03 17:30:46 +00002911></TR
Daniel Veillardbed7b052001-05-19 14:59:49 +00002912></TBODY
Daniel Veillard437b87b2000-01-03 17:30:46 +00002913></TABLE
2914><P
2915></P
2916></DIV
2917></DIV
Daniel Veillard1566d3a1999-07-15 14:24:29 +00002918></DIV
2919><DIV
2920CLASS="NAVFOOTER"
Daniel Veillard00fdf371999-10-08 09:40:39 +00002921><BR
2922CLEAR="all"><BR><TABLE
Daniel Veillard1566d3a1999-07-15 14:24:29 +00002923WIDTH="100%"
2924BORDER="0"
2925BGCOLOR="#000000"
2926CELLPADDING="1"
2927CELLSPACING="0"
2928><TR
2929><TD
2930WIDTH="25%"
2931BGCOLOR="#C00000"
2932ALIGN="left"
2933><A
Daniel Veillard3bbbe6f2001-05-03 11:15:37 +00002934HREF="libxml-xmlerror.html"
Daniel Veillard1566d3a1999-07-15 14:24:29 +00002935><FONT
2936COLOR="#FFFFFF"
2937SIZE="3"
2938><B
2939>&#60;&#60;&#60; Previous Page</B
2940></FONT
2941></A
2942></TD
2943><TD
2944WIDTH="25%"
2945BGCOLOR="#0000C0"
2946ALIGN="center"
2947><FONT
2948COLOR="#FFFFFF"
2949SIZE="3"
2950><B
2951><A
2952HREF="book1.html"
2953><FONT
2954COLOR="#FFFFFF"
2955SIZE="3"
2956><B
2957>Home</B
2958></FONT
2959></A
2960></B
2961></FONT
2962></TD
2963><TD
2964WIDTH="25%"
2965BGCOLOR="#00C000"
2966ALIGN="center"
2967><FONT
2968COLOR="#FFFFFF"
2969SIZE="3"
2970><B
2971><A
Daniel Veillard35008381999-10-25 13:15:52 +00002972HREF="libxml-lib.html"
Daniel Veillard1566d3a1999-07-15 14:24:29 +00002973><FONT
2974COLOR="#FFFFFF"
2975SIZE="3"
2976><B
2977>Up</B
2978></FONT
2979></A
2980></B
2981></FONT
2982></TD
2983><TD
2984WIDTH="25%"
2985BGCOLOR="#C00000"
2986ALIGN="right"
2987><A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +00002988HREF="libxml-htmltree.html"
Daniel Veillard1566d3a1999-07-15 14:24:29 +00002989><FONT
2990COLOR="#FFFFFF"
2991SIZE="3"
2992><B
2993>Next Page &#62;&#62;&#62;</B
2994></FONT
2995></A
2996></TD
2997></TR
2998><TR
2999><TD
3000COLSPAN="2"
3001ALIGN="left"
3002><FONT
3003COLOR="#FFFFFF"
3004SIZE="3"
3005><B
Daniel Veillard3bbbe6f2001-05-03 11:15:37 +00003006>xmlerror</B
Daniel Veillard1566d3a1999-07-15 14:24:29 +00003007></FONT
3008></TD
3009><TD
3010COLSPAN="2"
3011ALIGN="right"
3012><FONT
3013COLOR="#FFFFFF"
3014SIZE="3"
3015><B
3016>HTMLtree</B
3017></FONT
3018></TD
3019></TR
3020></TABLE
3021></DIV
3022></BODY
3023></HTML
3024>