blob: dfd2f9e3ed66f7dc105953a8aedcad33f7e26a5e [file] [log] [blame]
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001<HTML
2><HEAD
3><TITLE
4>HTMLparser</TITLE
5><META
6NAME="GENERATOR"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00007CONTENT="Modular DocBook HTML Stylesheet Version 1.33"><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 Veillard6bd26dc1999-09-03 14:28:40 +000015TITLE="xml-error"
16HREF="gnome-xml-xml-error.html"><LINK
Daniel Veillard1566d3a1999-07-15 14:24:29 +000017REL="NEXT"
18TITLE="HTMLtree"
19HREF="gnome-xml-htmltree.html"></HEAD
20><BODY
21BGCOLOR="#FFFFFF"
22TEXT="#000000"
23><DIV
24CLASS="NAVHEADER"
25><TABLE
26WIDTH="100%"
27BORDER="0"
28BGCOLOR="#000000"
29CELLPADDING="1"
30CELLSPACING="0"
31><TR
32><TH
33COLSPAN="4"
34ALIGN="center"
35><FONT
36COLOR="#FFFFFF"
37SIZE="5"
38>Gnome XML Library Reference Manual</FONT
39></TH
40></TR
41><TR
42><TD
43WIDTH="25%"
44BGCOLOR="#C00000"
45ALIGN="left"
46><A
Daniel Veillard6bd26dc1999-09-03 14:28:40 +000047HREF="gnome-xml-xml-error.html"
Daniel Veillard1566d3a1999-07-15 14:24:29 +000048><FONT
49COLOR="#FFFFFF"
50SIZE="3"
51><B
52>&#60;&#60;&#60; Previous Page</B
53></FONT
54></A
55></TD
56><TD
57WIDTH="25%"
58BGCOLOR="#0000C0"
59ALIGN="center"
60><FONT
61COLOR="#FFFFFF"
62SIZE="3"
63><B
64><A
65HREF="book1.html"
66><FONT
67COLOR="#FFFFFF"
68SIZE="3"
69><B
70>Home</B
71></FONT
72></A
73></B
74></FONT
75></TD
76><TD
77WIDTH="25%"
78BGCOLOR="#00C000"
79ALIGN="center"
80><FONT
81COLOR="#FFFFFF"
82SIZE="3"
83><B
84><A
Daniel Veillard35008381999-10-25 13:15:52 +000085HREF="libxml-lib.html"
Daniel Veillard1566d3a1999-07-15 14:24:29 +000086><FONT
87COLOR="#FFFFFF"
88SIZE="3"
89><B
90>Up</B
91></FONT
92></A
93></B
94></FONT
95></TD
96><TD
97WIDTH="25%"
98BGCOLOR="#C00000"
99ALIGN="right"
100><A
101HREF="gnome-xml-htmltree.html"
102><FONT
103COLOR="#FFFFFF"
104SIZE="3"
105><B
106>Next Page &#62;&#62;&#62;</B
107></FONT
108></A
109></TD
110></TR
111></TABLE
112></DIV
113><H1
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000114>HTMLparser</H1
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000115><DIV
116CLASS="REFNAMEDIV"
117><A
Daniel Veillard7c29ce22000-08-12 21:20:53 +0000118NAME="AEN9261"
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000119></A
120><H2
121>Name</H2
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000122>HTMLparser &#8212; </DIV
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000123><DIV
124CLASS="REFSYNOPSISDIV"
125><A
Daniel Veillard7c29ce22000-08-12 21:20:53 +0000126NAME="AEN9264"
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000127></A
128><H2
129>Synopsis</H2
130><TABLE
131BORDER="0"
132BGCOLOR="#D6E8FF"
133WIDTH="100%"
134CELLPADDING="6"
135><TR
136><TD
137><PRE
138CLASS="SYNOPSIS"
139>&#13;
140
141typedef <A
142HREF="gnome-xml-htmlparser.html#HTMLPARSERCTXT"
143>htmlParserCtxt</A
144>;
145typedef <A
146HREF="gnome-xml-htmlparser.html#HTMLPARSERCTXTPTR"
147>htmlParserCtxtPtr</A
148>;
149typedef <A
150HREF="gnome-xml-htmlparser.html#HTMLPARSERNODEINFO"
151>htmlParserNodeInfo</A
152>;
153typedef <A
154HREF="gnome-xml-htmlparser.html#HTMLSAXHANDLER"
155>htmlSAXHandler</A
156>;
157typedef <A
158HREF="gnome-xml-htmlparser.html#HTMLSAXHANDLERPTR"
159>htmlSAXHandlerPtr</A
160>;
161typedef <A
162HREF="gnome-xml-htmlparser.html#HTMLPARSERINPUT"
163>htmlParserInput</A
164>;
165typedef <A
166HREF="gnome-xml-htmlparser.html#HTMLPARSERINPUTPTR"
167>htmlParserInputPtr</A
168>;
169typedef <A
170HREF="gnome-xml-htmlparser.html#HTMLDOCPTR"
171>htmlDocPtr</A
172>;
173typedef <A
174HREF="gnome-xml-htmlparser.html#HTMLNODEPTR"
175>htmlNodePtr</A
176>;
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000177struct <A
178HREF="gnome-xml-htmlparser.html#HTMLELEMDESC"
179>htmlElemDesc</A
180>;
181typedef <A
182HREF="gnome-xml-htmlparser.html#HTMLELEMDESCPTR"
183>htmlElemDescPtr</A
184>;
185struct <A
186HREF="gnome-xml-htmlparser.html#HTMLENTITYDESC"
187>htmlEntityDesc</A
188>;
189typedef <A
190HREF="gnome-xml-htmlparser.html#HTMLENTITYDESCPTR"
191>htmlEntityDescPtr</A
192>;
193<A
194HREF="gnome-xml-htmlparser.html#HTMLELEMDESCPTR"
195>htmlElemDescPtr</A
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000196> <A
197HREF="gnome-xml-htmlparser.html#HTMLTAGLOOKUP"
198>htmlTagLookup</A
199> (const <A
Daniel Veillarddd6b3671999-09-23 22:19:22 +0000200HREF="gnome-xml-tree.html#XMLCHAR"
201>xmlChar</A
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000202> *tag);
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000203<A
204HREF="gnome-xml-htmlparser.html#HTMLENTITYDESCPTR"
205>htmlEntityDescPtr</A
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000206> <A
207HREF="gnome-xml-htmlparser.html#HTMLENTITYLOOKUP"
208>htmlEntityLookup</A
209> (const <A
Daniel Veillarddd6b3671999-09-23 22:19:22 +0000210HREF="gnome-xml-tree.html#XMLCHAR"
211>xmlChar</A
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000212> *name);
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000213int <A
214HREF="gnome-xml-htmlparser.html#HTMLISAUTOCLOSED"
215>htmlIsAutoClosed</A
216> (<A
217HREF="gnome-xml-htmlparser.html#HTMLDOCPTR"
218>htmlDocPtr</A
219> doc,
220 <A
221HREF="gnome-xml-htmlparser.html#HTMLNODEPTR"
222>htmlNodePtr</A
223> elem);
224int <A
225HREF="gnome-xml-htmlparser.html#HTMLAUTOCLOSETAG"
226>htmlAutoCloseTag</A
227> (<A
228HREF="gnome-xml-htmlparser.html#HTMLDOCPTR"
229>htmlDocPtr</A
230> doc,
231 const <A
232HREF="gnome-xml-tree.html#XMLCHAR"
233>xmlChar</A
234> *name,
235 <A
236HREF="gnome-xml-htmlparser.html#HTMLNODEPTR"
237>htmlNodePtr</A
238> elem);
239<A
240HREF="gnome-xml-htmlparser.html#HTMLENTITYDESCPTR"
241>htmlEntityDescPtr</A
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000242> <A
243HREF="gnome-xml-htmlparser.html#HTMLPARSEENTITYREF"
244>htmlParseEntityRef</A
245> (<A
246HREF="gnome-xml-htmlparser.html#HTMLPARSERCTXTPTR"
247>htmlParserCtxtPtr</A
248> ctxt,
249 <A
Daniel Veillarddd6b3671999-09-23 22:19:22 +0000250HREF="gnome-xml-tree.html#XMLCHAR"
251>xmlChar</A
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000252> **str);
253int <A
254HREF="gnome-xml-htmlparser.html#HTMLPARSECHARREF"
255>htmlParseCharRef</A
256> (<A
257HREF="gnome-xml-htmlparser.html#HTMLPARSERCTXTPTR"
258>htmlParserCtxtPtr</A
259> ctxt);
260void <A
261HREF="gnome-xml-htmlparser.html#HTMLPARSEELEMENT"
262>htmlParseElement</A
263> (<A
264HREF="gnome-xml-htmlparser.html#HTMLPARSERCTXTPTR"
265>htmlParserCtxtPtr</A
266> ctxt);
267<A
268HREF="gnome-xml-htmlparser.html#HTMLDOCPTR"
269>htmlDocPtr</A
270> <A
271HREF="gnome-xml-htmlparser.html#HTMLSAXPARSEDOC"
272>htmlSAXParseDoc</A
273> (<A
Daniel Veillarddd6b3671999-09-23 22:19:22 +0000274HREF="gnome-xml-tree.html#XMLCHAR"
275>xmlChar</A
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000276> *cur,
277 const char *encoding,
278 <A
279HREF="gnome-xml-htmlparser.html#HTMLSAXHANDLERPTR"
280>htmlSAXHandlerPtr</A
281> sax,
282 void *userData);
283<A
284HREF="gnome-xml-htmlparser.html#HTMLDOCPTR"
285>htmlDocPtr</A
286> <A
287HREF="gnome-xml-htmlparser.html#HTMLPARSEDOC"
288>htmlParseDoc</A
289> (<A
Daniel Veillarddd6b3671999-09-23 22:19:22 +0000290HREF="gnome-xml-tree.html#XMLCHAR"
291>xmlChar</A
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000292> *cur,
293 const char *encoding);
294<A
295HREF="gnome-xml-htmlparser.html#HTMLDOCPTR"
296>htmlDocPtr</A
297> <A
298HREF="gnome-xml-htmlparser.html#HTMLSAXPARSEFILE"
299>htmlSAXParseFile</A
300> (const char *filename,
301 const char *encoding,
302 <A
303HREF="gnome-xml-htmlparser.html#HTMLSAXHANDLERPTR"
304>htmlSAXHandlerPtr</A
305> sax,
306 void *userData);
307<A
308HREF="gnome-xml-htmlparser.html#HTMLDOCPTR"
309>htmlDocPtr</A
310> <A
311HREF="gnome-xml-htmlparser.html#HTMLPARSEFILE"
312>htmlParseFile</A
313> (const char *filename,
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000314 const char *encoding);
Daniel Veillarde46e20d2000-07-14 15:02:46 +0000315int <A
316HREF="gnome-xml-htmlparser.html#UTF8TOHTML"
317>UTF8ToHtml</A
318> (unsigned char *out,
319 int *outlen,
320 unsigned char *in,
321 int *inlen);
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000322void <A
323HREF="gnome-xml-htmlparser.html#HTMLFREEPARSERCTXT"
324>htmlFreeParserCtxt</A
325> (<A
326HREF="gnome-xml-htmlparser.html#HTMLPARSERCTXTPTR"
327>htmlParserCtxtPtr</A
328> ctxt);
329<A
330HREF="gnome-xml-htmlparser.html#HTMLPARSERCTXTPTR"
331>htmlParserCtxtPtr</A
332> <A
333HREF="gnome-xml-htmlparser.html#HTMLCREATEPUSHPARSERCTXT"
334>htmlCreatePushParserCtxt</A
335> (<A
336HREF="gnome-xml-htmlparser.html#HTMLSAXHANDLERPTR"
337>htmlSAXHandlerPtr</A
338> sax,
339 void *user_data,
340 const char *chunk,
341 int size,
342 const char *filename,
343 <A
344HREF="gnome-xml-encoding.html#XMLCHARENCODING"
345>xmlCharEncoding</A
346> enc);
347int <A
348HREF="gnome-xml-htmlparser.html#HTMLPARSECHUNK"
349>htmlParseChunk</A
350> (<A
351HREF="gnome-xml-htmlparser.html#HTMLPARSERCTXTPTR"
352>htmlParserCtxtPtr</A
353> ctxt,
354 const char *chunk,
355 int size,
356 int terminate);</PRE
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000357></TD
358></TR
359></TABLE
360></DIV
361><DIV
362CLASS="REFSECT1"
363><A
Daniel Veillard7c29ce22000-08-12 21:20:53 +0000364NAME="AEN9322"
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000365></A
366><H2
367>Description</H2
368><P
369></P
370></DIV
371><DIV
372CLASS="REFSECT1"
373><A
Daniel Veillard7c29ce22000-08-12 21:20:53 +0000374NAME="AEN9325"
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000375></A
376><H2
377>Details</H2
378><DIV
379CLASS="REFSECT2"
380><A
Daniel Veillard7c29ce22000-08-12 21:20:53 +0000381NAME="AEN9327"
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000382></A
383><H3
384><A
385NAME="HTMLPARSERCTXT"
386></A
387>htmlParserCtxt</H3
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000388><TABLE
389BORDER="0"
390BGCOLOR="#D6E8FF"
391WIDTH="100%"
392CELLPADDING="6"
393><TR
394><TD
395><PRE
396CLASS="PROGRAMLISTING"
397>typedef xmlParserCtxt htmlParserCtxt;</PRE
398></TD
399></TR
400></TABLE
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000401><P
402></P
403></DIV
404><HR><DIV
405CLASS="REFSECT2"
406><A
Daniel Veillard7c29ce22000-08-12 21:20:53 +0000407NAME="AEN9332"
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000408></A
409><H3
410><A
411NAME="HTMLPARSERCTXTPTR"
412></A
413>htmlParserCtxtPtr</H3
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000414><TABLE
415BORDER="0"
416BGCOLOR="#D6E8FF"
417WIDTH="100%"
418CELLPADDING="6"
419><TR
420><TD
421><PRE
422CLASS="PROGRAMLISTING"
423>typedef xmlParserCtxtPtr htmlParserCtxtPtr;</PRE
424></TD
425></TR
426></TABLE
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000427><P
428></P
429></DIV
430><HR><DIV
431CLASS="REFSECT2"
432><A
Daniel Veillard7c29ce22000-08-12 21:20:53 +0000433NAME="AEN9337"
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000434></A
435><H3
436><A
437NAME="HTMLPARSERNODEINFO"
438></A
439>htmlParserNodeInfo</H3
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000440><TABLE
441BORDER="0"
442BGCOLOR="#D6E8FF"
443WIDTH="100%"
444CELLPADDING="6"
445><TR
446><TD
447><PRE
448CLASS="PROGRAMLISTING"
449>typedef xmlParserNodeInfo htmlParserNodeInfo;</PRE
450></TD
451></TR
452></TABLE
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000453><P
454></P
455></DIV
456><HR><DIV
457CLASS="REFSECT2"
458><A
Daniel Veillard7c29ce22000-08-12 21:20:53 +0000459NAME="AEN9342"
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000460></A
461><H3
462><A
463NAME="HTMLSAXHANDLER"
464></A
465>htmlSAXHandler</H3
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000466><TABLE
467BORDER="0"
468BGCOLOR="#D6E8FF"
469WIDTH="100%"
470CELLPADDING="6"
471><TR
472><TD
473><PRE
474CLASS="PROGRAMLISTING"
475>typedef xmlSAXHandler htmlSAXHandler;</PRE
476></TD
477></TR
478></TABLE
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000479><P
480></P
481></DIV
482><HR><DIV
483CLASS="REFSECT2"
484><A
Daniel Veillard7c29ce22000-08-12 21:20:53 +0000485NAME="AEN9347"
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000486></A
487><H3
488><A
489NAME="HTMLSAXHANDLERPTR"
490></A
491>htmlSAXHandlerPtr</H3
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000492><TABLE
493BORDER="0"
494BGCOLOR="#D6E8FF"
495WIDTH="100%"
496CELLPADDING="6"
497><TR
498><TD
499><PRE
500CLASS="PROGRAMLISTING"
501>typedef xmlSAXHandlerPtr htmlSAXHandlerPtr;</PRE
502></TD
503></TR
504></TABLE
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000505><P
506></P
507></DIV
508><HR><DIV
509CLASS="REFSECT2"
510><A
Daniel Veillard7c29ce22000-08-12 21:20:53 +0000511NAME="AEN9352"
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000512></A
513><H3
514><A
515NAME="HTMLPARSERINPUT"
516></A
517>htmlParserInput</H3
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000518><TABLE
519BORDER="0"
520BGCOLOR="#D6E8FF"
521WIDTH="100%"
522CELLPADDING="6"
523><TR
524><TD
525><PRE
526CLASS="PROGRAMLISTING"
527>typedef xmlParserInput htmlParserInput;</PRE
528></TD
529></TR
530></TABLE
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000531><P
532></P
533></DIV
534><HR><DIV
535CLASS="REFSECT2"
536><A
Daniel Veillard7c29ce22000-08-12 21:20:53 +0000537NAME="AEN9357"
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000538></A
539><H3
540><A
541NAME="HTMLPARSERINPUTPTR"
542></A
543>htmlParserInputPtr</H3
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000544><TABLE
545BORDER="0"
546BGCOLOR="#D6E8FF"
547WIDTH="100%"
548CELLPADDING="6"
549><TR
550><TD
551><PRE
552CLASS="PROGRAMLISTING"
553>typedef xmlParserInputPtr htmlParserInputPtr;</PRE
554></TD
555></TR
556></TABLE
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000557><P
558></P
559></DIV
560><HR><DIV
561CLASS="REFSECT2"
562><A
Daniel Veillard7c29ce22000-08-12 21:20:53 +0000563NAME="AEN9362"
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000564></A
565><H3
566><A
567NAME="HTMLDOCPTR"
568></A
569>htmlDocPtr</H3
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000570><TABLE
571BORDER="0"
572BGCOLOR="#D6E8FF"
573WIDTH="100%"
574CELLPADDING="6"
575><TR
576><TD
577><PRE
578CLASS="PROGRAMLISTING"
579>typedef xmlDocPtr htmlDocPtr;</PRE
580></TD
581></TR
582></TABLE
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000583><P
584></P
585></DIV
586><HR><DIV
587CLASS="REFSECT2"
588><A
Daniel Veillard7c29ce22000-08-12 21:20:53 +0000589NAME="AEN9367"
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000590></A
591><H3
592><A
593NAME="HTMLNODEPTR"
594></A
595>htmlNodePtr</H3
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000596><TABLE
597BORDER="0"
598BGCOLOR="#D6E8FF"
599WIDTH="100%"
600CELLPADDING="6"
601><TR
602><TD
603><PRE
604CLASS="PROGRAMLISTING"
605>typedef xmlNodePtr htmlNodePtr;</PRE
606></TD
607></TR
608></TABLE
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000609><P
610></P
611></DIV
612><HR><DIV
613CLASS="REFSECT2"
614><A
Daniel Veillard7c29ce22000-08-12 21:20:53 +0000615NAME="AEN9372"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000616></A
617><H3
618><A
619NAME="HTMLELEMDESC"
620></A
621>struct htmlElemDesc</H3
622><TABLE
623BORDER="0"
624BGCOLOR="#D6E8FF"
625WIDTH="100%"
626CELLPADDING="6"
627><TR
628><TD
629><PRE
630CLASS="PROGRAMLISTING"
631>struct htmlElemDesc {
632 const char *name; /* The tag name */
633 int startTag; /* Whether the start tag can be implied */
634 int endTag; /* Whether the end tag can be implied */
635 int empty; /* Is this an empty element ? */
636 int depr; /* Is this a deprecated element ? */
637 int dtd; /* 1: only in Loose DTD, 2: only Frameset one */
638 const char *desc; /* the description */
639};</PRE
640></TD
641></TR
642></TABLE
643><P
644></P
645></DIV
646><HR><DIV
647CLASS="REFSECT2"
648><A
Daniel Veillard7c29ce22000-08-12 21:20:53 +0000649NAME="AEN9377"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000650></A
651><H3
652><A
653NAME="HTMLELEMDESCPTR"
654></A
655>htmlElemDescPtr</H3
656><TABLE
657BORDER="0"
658BGCOLOR="#D6E8FF"
659WIDTH="100%"
660CELLPADDING="6"
661><TR
662><TD
663><PRE
664CLASS="PROGRAMLISTING"
665>typedef htmlElemDesc *htmlElemDescPtr;</PRE
666></TD
667></TR
668></TABLE
669><P
670></P
671></DIV
672><HR><DIV
673CLASS="REFSECT2"
674><A
Daniel Veillard7c29ce22000-08-12 21:20:53 +0000675NAME="AEN9382"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000676></A
677><H3
678><A
679NAME="HTMLENTITYDESC"
680></A
681>struct htmlEntityDesc</H3
682><TABLE
683BORDER="0"
684BGCOLOR="#D6E8FF"
685WIDTH="100%"
686CELLPADDING="6"
687><TR
688><TD
689><PRE
690CLASS="PROGRAMLISTING"
691>struct htmlEntityDesc {
692 int value; /* the UNICODE value for the character */
693 const char *name; /* The entity name */
694 const char *desc; /* the description */
695};</PRE
696></TD
697></TR
698></TABLE
699><P
700></P
701></DIV
702><HR><DIV
703CLASS="REFSECT2"
704><A
Daniel Veillard7c29ce22000-08-12 21:20:53 +0000705NAME="AEN9387"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000706></A
707><H3
708><A
709NAME="HTMLENTITYDESCPTR"
710></A
711>htmlEntityDescPtr</H3
712><TABLE
713BORDER="0"
714BGCOLOR="#D6E8FF"
715WIDTH="100%"
716CELLPADDING="6"
717><TR
718><TD
719><PRE
720CLASS="PROGRAMLISTING"
721>typedef htmlEntityDesc *htmlEntityDescPtr;</PRE
722></TD
723></TR
724></TABLE
725><P
726></P
727></DIV
728><HR><DIV
729CLASS="REFSECT2"
730><A
Daniel Veillard7c29ce22000-08-12 21:20:53 +0000731NAME="AEN9392"
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000732></A
733><H3
734><A
735NAME="HTMLTAGLOOKUP"
736></A
737>htmlTagLookup ()</H3
738><TABLE
739BORDER="0"
740BGCOLOR="#D6E8FF"
741WIDTH="100%"
742CELLPADDING="6"
743><TR
744><TD
745><PRE
746CLASS="PROGRAMLISTING"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000747><A
748HREF="gnome-xml-htmlparser.html#HTMLELEMDESCPTR"
749>htmlElemDescPtr</A
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000750> htmlTagLookup (const <A
Daniel Veillarddd6b3671999-09-23 22:19:22 +0000751HREF="gnome-xml-tree.html#XMLCHAR"
752>xmlChar</A
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000753> *tag);</PRE
754></TD
755></TR
756></TABLE
757><P
758>Lookup the HTML tag in the ElementTable</P
759><P
760></P
761><DIV
762CLASS="INFORMALTABLE"
763><P
764></P
765><TABLE
766BORDER="0"
767WIDTH="100%"
768BGCOLOR="#FFD0D0"
769CELLSPACING="0"
770CELLPADDING="4"
771CLASS="CALSTABLE"
772><TR
773><TD
774WIDTH="20%"
775ALIGN="RIGHT"
776VALIGN="TOP"
777><TT
778CLASS="PARAMETER"
779><I
780>tag</I
781></TT
782>&nbsp;:</TD
783><TD
784WIDTH="80%"
785ALIGN="LEFT"
786VALIGN="TOP"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000787> The tag name</TD
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000788></TR
789><TR
790><TD
791WIDTH="20%"
792ALIGN="RIGHT"
793VALIGN="TOP"
794><I
795CLASS="EMPHASIS"
796>Returns</I
797> :</TD
798><TD
799WIDTH="80%"
800ALIGN="LEFT"
801VALIGN="TOP"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000802>the related htmlElemDescPtr or NULL if not found.</TD
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000803></TR
804></TABLE
805><P
806></P
807></DIV
808></DIV
809><HR><DIV
810CLASS="REFSECT2"
811><A
Daniel Veillard7c29ce22000-08-12 21:20:53 +0000812NAME="AEN9413"
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000813></A
814><H3
815><A
816NAME="HTMLENTITYLOOKUP"
817></A
818>htmlEntityLookup ()</H3
819><TABLE
820BORDER="0"
821BGCOLOR="#D6E8FF"
822WIDTH="100%"
823CELLPADDING="6"
824><TR
825><TD
826><PRE
827CLASS="PROGRAMLISTING"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000828><A
829HREF="gnome-xml-htmlparser.html#HTMLENTITYDESCPTR"
830>htmlEntityDescPtr</A
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000831> htmlEntityLookup (const <A
Daniel Veillarddd6b3671999-09-23 22:19:22 +0000832HREF="gnome-xml-tree.html#XMLCHAR"
833>xmlChar</A
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000834> *name);</PRE
835></TD
836></TR
837></TABLE
838><P
839>Lookup the given entity in EntitiesTable</P
840><P
841>TODO: the linear scan is really ugly, an hash table is really needed.</P
842><P
843></P
844><DIV
845CLASS="INFORMALTABLE"
846><P
847></P
848><TABLE
849BORDER="0"
850WIDTH="100%"
851BGCOLOR="#FFD0D0"
852CELLSPACING="0"
853CELLPADDING="4"
854CLASS="CALSTABLE"
855><TR
856><TD
857WIDTH="20%"
858ALIGN="RIGHT"
859VALIGN="TOP"
860><TT
861CLASS="PARAMETER"
862><I
863>name</I
864></TT
865>&nbsp;:</TD
866><TD
867WIDTH="80%"
868ALIGN="LEFT"
869VALIGN="TOP"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000870> the entity name</TD
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000871></TR
872><TR
873><TD
874WIDTH="20%"
875ALIGN="RIGHT"
876VALIGN="TOP"
877><I
878CLASS="EMPHASIS"
879>Returns</I
880> :</TD
881><TD
882WIDTH="80%"
883ALIGN="LEFT"
884VALIGN="TOP"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000885>the associated htmlEntityDescPtr if found, NULL otherwise.</TD
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000886></TR
887></TABLE
888><P
889></P
890></DIV
891></DIV
892><HR><DIV
893CLASS="REFSECT2"
894><A
Daniel Veillard7c29ce22000-08-12 21:20:53 +0000895NAME="AEN9435"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000896></A
897><H3
898><A
899NAME="HTMLISAUTOCLOSED"
900></A
901>htmlIsAutoClosed ()</H3
902><TABLE
903BORDER="0"
904BGCOLOR="#D6E8FF"
905WIDTH="100%"
906CELLPADDING="6"
907><TR
908><TD
909><PRE
910CLASS="PROGRAMLISTING"
911>int htmlIsAutoClosed (<A
912HREF="gnome-xml-htmlparser.html#HTMLDOCPTR"
913>htmlDocPtr</A
914> doc,
915 <A
916HREF="gnome-xml-htmlparser.html#HTMLNODEPTR"
917>htmlNodePtr</A
918> elem);</PRE
919></TD
920></TR
921></TABLE
922><P
923>The HTmL DtD allows a tag to implicitely close other tags.
924The list is kept in htmlStartClose array. This function checks
925if a tag is autoclosed by one of it's child</P
926><P
927></P
928><DIV
929CLASS="INFORMALTABLE"
930><P
931></P
932><TABLE
933BORDER="0"
934WIDTH="100%"
935BGCOLOR="#FFD0D0"
936CELLSPACING="0"
937CELLPADDING="4"
938CLASS="CALSTABLE"
939><TR
940><TD
941WIDTH="20%"
942ALIGN="RIGHT"
943VALIGN="TOP"
944><TT
945CLASS="PARAMETER"
946><I
947>doc</I
948></TT
949>&nbsp;:</TD
950><TD
951WIDTH="80%"
952ALIGN="LEFT"
953VALIGN="TOP"
954> the HTML document</TD
955></TR
956><TR
957><TD
958WIDTH="20%"
959ALIGN="RIGHT"
960VALIGN="TOP"
961><TT
962CLASS="PARAMETER"
963><I
964>elem</I
965></TT
966>&nbsp;:</TD
967><TD
968WIDTH="80%"
969ALIGN="LEFT"
970VALIGN="TOP"
971> the HTML element</TD
972></TR
973><TR
974><TD
975WIDTH="20%"
976ALIGN="RIGHT"
977VALIGN="TOP"
978><I
979CLASS="EMPHASIS"
980>Returns</I
981> :</TD
982><TD
983WIDTH="80%"
984ALIGN="LEFT"
985VALIGN="TOP"
986>1 if autoclosed, 0 otherwise</TD
987></TR
988></TABLE
989><P
990></P
991></DIV
992></DIV
993><HR><DIV
994CLASS="REFSECT2"
995><A
Daniel Veillard7c29ce22000-08-12 21:20:53 +0000996NAME="AEN9460"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000997></A
998><H3
999><A
1000NAME="HTMLAUTOCLOSETAG"
1001></A
1002>htmlAutoCloseTag ()</H3
1003><TABLE
1004BORDER="0"
1005BGCOLOR="#D6E8FF"
1006WIDTH="100%"
1007CELLPADDING="6"
1008><TR
1009><TD
1010><PRE
1011CLASS="PROGRAMLISTING"
1012>int htmlAutoCloseTag (<A
1013HREF="gnome-xml-htmlparser.html#HTMLDOCPTR"
1014>htmlDocPtr</A
1015> doc,
1016 const <A
1017HREF="gnome-xml-tree.html#XMLCHAR"
1018>xmlChar</A
1019> *name,
1020 <A
1021HREF="gnome-xml-htmlparser.html#HTMLNODEPTR"
1022>htmlNodePtr</A
1023> elem);</PRE
1024></TD
1025></TR
1026></TABLE
1027><P
1028>The HTmL DtD allows a tag to implicitely close other tags.
1029The list is kept in htmlStartClose array. This function checks
1030if the element or one of it's children would autoclose the
1031given tag.</P
1032><P
1033></P
1034><DIV
1035CLASS="INFORMALTABLE"
1036><P
1037></P
1038><TABLE
1039BORDER="0"
1040WIDTH="100%"
1041BGCOLOR="#FFD0D0"
1042CELLSPACING="0"
1043CELLPADDING="4"
1044CLASS="CALSTABLE"
1045><TR
1046><TD
1047WIDTH="20%"
1048ALIGN="RIGHT"
1049VALIGN="TOP"
1050><TT
1051CLASS="PARAMETER"
1052><I
1053>doc</I
1054></TT
1055>&nbsp;:</TD
1056><TD
1057WIDTH="80%"
1058ALIGN="LEFT"
1059VALIGN="TOP"
1060> the HTML document</TD
1061></TR
1062><TR
1063><TD
1064WIDTH="20%"
1065ALIGN="RIGHT"
1066VALIGN="TOP"
1067><TT
1068CLASS="PARAMETER"
1069><I
1070>name</I
1071></TT
1072>&nbsp;:</TD
1073><TD
1074WIDTH="80%"
1075ALIGN="LEFT"
1076VALIGN="TOP"
1077> The tag name</TD
1078></TR
1079><TR
1080><TD
1081WIDTH="20%"
1082ALIGN="RIGHT"
1083VALIGN="TOP"
1084><TT
1085CLASS="PARAMETER"
1086><I
1087>elem</I
1088></TT
1089>&nbsp;:</TD
1090><TD
1091WIDTH="80%"
1092ALIGN="LEFT"
1093VALIGN="TOP"
1094> the HTML element</TD
1095></TR
1096><TR
1097><TD
1098WIDTH="20%"
1099ALIGN="RIGHT"
1100VALIGN="TOP"
1101><I
1102CLASS="EMPHASIS"
1103>Returns</I
1104> :</TD
1105><TD
1106WIDTH="80%"
1107ALIGN="LEFT"
1108VALIGN="TOP"
1109>1 if autoclose, 0 otherwise</TD
1110></TR
1111></TABLE
1112><P
1113></P
1114></DIV
1115></DIV
1116><HR><DIV
1117CLASS="REFSECT2"
1118><A
Daniel Veillard7c29ce22000-08-12 21:20:53 +00001119NAME="AEN9490"
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001120></A
1121><H3
1122><A
1123NAME="HTMLPARSEENTITYREF"
1124></A
1125>htmlParseEntityRef ()</H3
1126><TABLE
1127BORDER="0"
1128BGCOLOR="#D6E8FF"
1129WIDTH="100%"
1130CELLPADDING="6"
1131><TR
1132><TD
1133><PRE
1134CLASS="PROGRAMLISTING"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00001135><A
1136HREF="gnome-xml-htmlparser.html#HTMLENTITYDESCPTR"
1137>htmlEntityDescPtr</A
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001138> htmlParseEntityRef (<A
1139HREF="gnome-xml-htmlparser.html#HTMLPARSERCTXTPTR"
1140>htmlParserCtxtPtr</A
1141> ctxt,
1142 <A
Daniel Veillarddd6b3671999-09-23 22:19:22 +00001143HREF="gnome-xml-tree.html#XMLCHAR"
1144>xmlChar</A
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001145> **str);</PRE
1146></TD
1147></TR
1148></TABLE
1149><P
1150>parse an HTML ENTITY references</P
1151><P
1152>[68] EntityRef ::= '&amp;' Name ';'</P
1153><P
1154></P
1155><DIV
1156CLASS="INFORMALTABLE"
1157><P
1158></P
1159><TABLE
1160BORDER="0"
1161WIDTH="100%"
1162BGCOLOR="#FFD0D0"
1163CELLSPACING="0"
1164CELLPADDING="4"
1165CLASS="CALSTABLE"
1166><TR
1167><TD
1168WIDTH="20%"
1169ALIGN="RIGHT"
1170VALIGN="TOP"
1171><TT
1172CLASS="PARAMETER"
1173><I
1174>ctxt</I
1175></TT
1176>&nbsp;:</TD
1177><TD
1178WIDTH="80%"
1179ALIGN="LEFT"
1180VALIGN="TOP"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00001181> an HTML parser context</TD
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001182></TR
1183><TR
1184><TD
1185WIDTH="20%"
1186ALIGN="RIGHT"
1187VALIGN="TOP"
1188><TT
1189CLASS="PARAMETER"
1190><I
1191>str</I
1192></TT
1193>&nbsp;:</TD
1194><TD
1195WIDTH="80%"
1196ALIGN="LEFT"
1197VALIGN="TOP"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00001198> location to store the entity name</TD
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001199></TR
1200><TR
1201><TD
1202WIDTH="20%"
1203ALIGN="RIGHT"
1204VALIGN="TOP"
1205><I
1206CLASS="EMPHASIS"
1207>Returns</I
1208> :</TD
1209><TD
1210WIDTH="80%"
1211ALIGN="LEFT"
1212VALIGN="TOP"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00001213>the associated htmlEntityDescPtr if found, or NULL otherwise,
1214if non-NULL *str will have to be freed by the caller.</TD
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001215></TR
1216></TABLE
1217><P
1218></P
1219></DIV
1220></DIV
1221><HR><DIV
1222CLASS="REFSECT2"
1223><A
Daniel Veillard7c29ce22000-08-12 21:20:53 +00001224NAME="AEN9517"
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001225></A
1226><H3
1227><A
1228NAME="HTMLPARSECHARREF"
1229></A
1230>htmlParseCharRef ()</H3
1231><TABLE
1232BORDER="0"
1233BGCOLOR="#D6E8FF"
1234WIDTH="100%"
1235CELLPADDING="6"
1236><TR
1237><TD
1238><PRE
1239CLASS="PROGRAMLISTING"
1240>int htmlParseCharRef (<A
1241HREF="gnome-xml-htmlparser.html#HTMLPARSERCTXTPTR"
1242>htmlParserCtxtPtr</A
1243> ctxt);</PRE
1244></TD
1245></TR
1246></TABLE
1247><P
1248>parse Reference declarations</P
1249><P
1250>[66] CharRef ::= '&amp;#' [0-9]+ ';' |
1251'&amp;<GTKDOCLINK
1252HREF="X"
1253>x</GTKDOCLINK
1254>' [0-9a-fA-F]+ ';'</P
1255><P
1256></P
1257><DIV
1258CLASS="INFORMALTABLE"
1259><P
1260></P
1261><TABLE
1262BORDER="0"
1263WIDTH="100%"
1264BGCOLOR="#FFD0D0"
1265CELLSPACING="0"
1266CELLPADDING="4"
1267CLASS="CALSTABLE"
1268><TR
1269><TD
1270WIDTH="20%"
1271ALIGN="RIGHT"
1272VALIGN="TOP"
1273><TT
1274CLASS="PARAMETER"
1275><I
1276>ctxt</I
1277></TT
1278>&nbsp;:</TD
1279><TD
1280WIDTH="80%"
1281ALIGN="LEFT"
1282VALIGN="TOP"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00001283> an HTML parser context</TD
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001284></TR
1285><TR
1286><TD
1287WIDTH="20%"
1288ALIGN="RIGHT"
1289VALIGN="TOP"
1290><I
1291CLASS="EMPHASIS"
1292>Returns</I
1293> :</TD
1294><TD
1295WIDTH="80%"
1296ALIGN="LEFT"
1297VALIGN="TOP"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00001298>the value parsed (as an int)</TD
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001299></TR
1300></TABLE
1301><P
1302></P
1303></DIV
1304></DIV
1305><HR><DIV
1306CLASS="REFSECT2"
1307><A
Daniel Veillard7c29ce22000-08-12 21:20:53 +00001308NAME="AEN9539"
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001309></A
1310><H3
1311><A
1312NAME="HTMLPARSEELEMENT"
1313></A
1314>htmlParseElement ()</H3
1315><TABLE
1316BORDER="0"
1317BGCOLOR="#D6E8FF"
1318WIDTH="100%"
1319CELLPADDING="6"
1320><TR
1321><TD
1322><PRE
1323CLASS="PROGRAMLISTING"
1324>void htmlParseElement (<A
1325HREF="gnome-xml-htmlparser.html#HTMLPARSERCTXTPTR"
1326>htmlParserCtxtPtr</A
1327> ctxt);</PRE
1328></TD
1329></TR
1330></TABLE
1331><P
1332>parse an HTML element, this is highly recursive</P
1333><P
1334>[39] element ::= EmptyElemTag | STag content ETag</P
1335><P
1336>[41] Attribute ::= Name Eq AttValue</P
1337><P
1338></P
1339><DIV
1340CLASS="INFORMALTABLE"
1341><P
1342></P
1343><TABLE
1344BORDER="0"
1345WIDTH="100%"
1346BGCOLOR="#FFD0D0"
1347CELLSPACING="0"
1348CELLPADDING="4"
1349CLASS="CALSTABLE"
1350><TR
1351><TD
1352WIDTH="20%"
1353ALIGN="RIGHT"
1354VALIGN="TOP"
1355><TT
1356CLASS="PARAMETER"
1357><I
1358>ctxt</I
1359></TT
1360>&nbsp;:</TD
1361><TD
1362WIDTH="80%"
1363ALIGN="LEFT"
1364VALIGN="TOP"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00001365> an HTML parser context</TD
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001366></TR
1367></TABLE
1368><P
1369></P
1370></DIV
1371></DIV
1372><HR><DIV
1373CLASS="REFSECT2"
1374><A
Daniel Veillard7c29ce22000-08-12 21:20:53 +00001375NAME="AEN9557"
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001376></A
1377><H3
1378><A
1379NAME="HTMLSAXPARSEDOC"
1380></A
1381>htmlSAXParseDoc ()</H3
1382><TABLE
1383BORDER="0"
1384BGCOLOR="#D6E8FF"
1385WIDTH="100%"
1386CELLPADDING="6"
1387><TR
1388><TD
1389><PRE
1390CLASS="PROGRAMLISTING"
1391><A
1392HREF="gnome-xml-htmlparser.html#HTMLDOCPTR"
1393>htmlDocPtr</A
1394> htmlSAXParseDoc (<A
Daniel Veillarddd6b3671999-09-23 22:19:22 +00001395HREF="gnome-xml-tree.html#XMLCHAR"
1396>xmlChar</A
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001397> *cur,
1398 const char *encoding,
1399 <A
1400HREF="gnome-xml-htmlparser.html#HTMLSAXHANDLERPTR"
1401>htmlSAXHandlerPtr</A
1402> sax,
1403 void *userData);</PRE
1404></TD
1405></TR
1406></TABLE
1407><P
1408>parse an HTML in-memory document and build a tree.
1409It use the given SAX function block to handle the parsing callback.
1410If sax is NULL, fallback to the default DOM tree building routines.</P
1411><P
1412></P
1413><DIV
1414CLASS="INFORMALTABLE"
1415><P
1416></P
1417><TABLE
1418BORDER="0"
1419WIDTH="100%"
1420BGCOLOR="#FFD0D0"
1421CELLSPACING="0"
1422CELLPADDING="4"
1423CLASS="CALSTABLE"
1424><TR
1425><TD
1426WIDTH="20%"
1427ALIGN="RIGHT"
1428VALIGN="TOP"
1429><TT
1430CLASS="PARAMETER"
1431><I
1432>cur</I
1433></TT
1434>&nbsp;:</TD
1435><TD
1436WIDTH="80%"
1437ALIGN="LEFT"
1438VALIGN="TOP"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00001439> a pointer to an array of xmlChar</TD
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001440></TR
1441><TR
1442><TD
1443WIDTH="20%"
1444ALIGN="RIGHT"
1445VALIGN="TOP"
1446><TT
1447CLASS="PARAMETER"
1448><I
1449>encoding</I
1450></TT
1451>&nbsp;:</TD
1452><TD
1453WIDTH="80%"
1454ALIGN="LEFT"
1455VALIGN="TOP"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00001456> a free form C string describing the HTML document encoding, or NULL</TD
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001457></TR
1458><TR
1459><TD
1460WIDTH="20%"
1461ALIGN="RIGHT"
1462VALIGN="TOP"
1463><TT
1464CLASS="PARAMETER"
1465><I
1466>sax</I
1467></TT
1468>&nbsp;:</TD
1469><TD
1470WIDTH="80%"
1471ALIGN="LEFT"
1472VALIGN="TOP"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00001473> the SAX handler block</TD
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001474></TR
1475><TR
1476><TD
1477WIDTH="20%"
1478ALIGN="RIGHT"
1479VALIGN="TOP"
1480><TT
1481CLASS="PARAMETER"
1482><I
1483>userData</I
1484></TT
1485>&nbsp;:</TD
1486><TD
1487WIDTH="80%"
1488ALIGN="LEFT"
1489VALIGN="TOP"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00001490> if using SAX, this pointer will be provided on callbacks. </TD
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001491></TR
1492><TR
1493><TD
1494WIDTH="20%"
1495ALIGN="RIGHT"
1496VALIGN="TOP"
1497><I
1498CLASS="EMPHASIS"
1499>Returns</I
1500> :</TD
1501><TD
1502WIDTH="80%"
1503ALIGN="LEFT"
1504VALIGN="TOP"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00001505>the resulting document tree</TD
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001506></TR
1507></TABLE
1508><P
1509></P
1510></DIV
1511></DIV
1512><HR><DIV
1513CLASS="REFSECT2"
1514><A
Daniel Veillard7c29ce22000-08-12 21:20:53 +00001515NAME="AEN9591"
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001516></A
1517><H3
1518><A
1519NAME="HTMLPARSEDOC"
1520></A
1521>htmlParseDoc ()</H3
1522><TABLE
1523BORDER="0"
1524BGCOLOR="#D6E8FF"
1525WIDTH="100%"
1526CELLPADDING="6"
1527><TR
1528><TD
1529><PRE
1530CLASS="PROGRAMLISTING"
1531><A
1532HREF="gnome-xml-htmlparser.html#HTMLDOCPTR"
1533>htmlDocPtr</A
1534> htmlParseDoc (<A
Daniel Veillarddd6b3671999-09-23 22:19:22 +00001535HREF="gnome-xml-tree.html#XMLCHAR"
1536>xmlChar</A
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001537> *cur,
1538 const char *encoding);</PRE
1539></TD
1540></TR
1541></TABLE
1542><P
1543>parse an HTML in-memory document and build a tree.</P
1544><P
1545></P
1546><DIV
1547CLASS="INFORMALTABLE"
1548><P
1549></P
1550><TABLE
1551BORDER="0"
1552WIDTH="100%"
1553BGCOLOR="#FFD0D0"
1554CELLSPACING="0"
1555CELLPADDING="4"
1556CLASS="CALSTABLE"
1557><TR
1558><TD
1559WIDTH="20%"
1560ALIGN="RIGHT"
1561VALIGN="TOP"
1562><TT
1563CLASS="PARAMETER"
1564><I
1565>cur</I
1566></TT
1567>&nbsp;:</TD
1568><TD
1569WIDTH="80%"
1570ALIGN="LEFT"
1571VALIGN="TOP"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00001572> a pointer to an array of xmlChar</TD
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001573></TR
1574><TR
1575><TD
1576WIDTH="20%"
1577ALIGN="RIGHT"
1578VALIGN="TOP"
1579><TT
1580CLASS="PARAMETER"
1581><I
1582>encoding</I
1583></TT
1584>&nbsp;:</TD
1585><TD
1586WIDTH="80%"
1587ALIGN="LEFT"
1588VALIGN="TOP"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00001589> a free form C string describing the HTML document encoding, or NULL</TD
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001590></TR
1591><TR
1592><TD
1593WIDTH="20%"
1594ALIGN="RIGHT"
1595VALIGN="TOP"
1596><I
1597CLASS="EMPHASIS"
1598>Returns</I
1599> :</TD
1600><TD
1601WIDTH="80%"
1602ALIGN="LEFT"
1603VALIGN="TOP"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00001604>the resulting document tree</TD
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001605></TR
1606></TABLE
1607><P
1608></P
1609></DIV
1610></DIV
1611><HR><DIV
1612CLASS="REFSECT2"
1613><A
Daniel Veillard7c29ce22000-08-12 21:20:53 +00001614NAME="AEN9616"
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001615></A
1616><H3
1617><A
1618NAME="HTMLSAXPARSEFILE"
1619></A
1620>htmlSAXParseFile ()</H3
1621><TABLE
1622BORDER="0"
1623BGCOLOR="#D6E8FF"
1624WIDTH="100%"
1625CELLPADDING="6"
1626><TR
1627><TD
1628><PRE
1629CLASS="PROGRAMLISTING"
1630><A
1631HREF="gnome-xml-htmlparser.html#HTMLDOCPTR"
1632>htmlDocPtr</A
1633> htmlSAXParseFile (const char *filename,
1634 const char *encoding,
1635 <A
1636HREF="gnome-xml-htmlparser.html#HTMLSAXHANDLERPTR"
1637>htmlSAXHandlerPtr</A
1638> sax,
1639 void *userData);</PRE
1640></TD
1641></TR
1642></TABLE
1643><P
1644>parse an HTML file and build a tree. Automatic support for ZLIB/Compress
1645compressed document is provided by default if found at compile-time.
1646It use the given SAX function block to handle the parsing callback.
1647If sax is NULL, fallback to the default DOM tree building routines.</P
1648><P
1649></P
1650><DIV
1651CLASS="INFORMALTABLE"
1652><P
1653></P
1654><TABLE
1655BORDER="0"
1656WIDTH="100%"
1657BGCOLOR="#FFD0D0"
1658CELLSPACING="0"
1659CELLPADDING="4"
1660CLASS="CALSTABLE"
1661><TR
1662><TD
1663WIDTH="20%"
1664ALIGN="RIGHT"
1665VALIGN="TOP"
1666><TT
1667CLASS="PARAMETER"
1668><I
1669>filename</I
1670></TT
1671>&nbsp;:</TD
1672><TD
1673WIDTH="80%"
1674ALIGN="LEFT"
1675VALIGN="TOP"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00001676> the filename</TD
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001677></TR
1678><TR
1679><TD
1680WIDTH="20%"
1681ALIGN="RIGHT"
1682VALIGN="TOP"
1683><TT
1684CLASS="PARAMETER"
1685><I
1686>encoding</I
1687></TT
1688>&nbsp;:</TD
1689><TD
1690WIDTH="80%"
1691ALIGN="LEFT"
1692VALIGN="TOP"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00001693> a free form C string describing the HTML document encoding, or NULL</TD
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001694></TR
1695><TR
1696><TD
1697WIDTH="20%"
1698ALIGN="RIGHT"
1699VALIGN="TOP"
1700><TT
1701CLASS="PARAMETER"
1702><I
1703>sax</I
1704></TT
1705>&nbsp;:</TD
1706><TD
1707WIDTH="80%"
1708ALIGN="LEFT"
1709VALIGN="TOP"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00001710> the SAX handler block</TD
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001711></TR
1712><TR
1713><TD
1714WIDTH="20%"
1715ALIGN="RIGHT"
1716VALIGN="TOP"
1717><TT
1718CLASS="PARAMETER"
1719><I
1720>userData</I
1721></TT
1722>&nbsp;:</TD
1723><TD
1724WIDTH="80%"
1725ALIGN="LEFT"
1726VALIGN="TOP"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00001727> if using SAX, this pointer will be provided on callbacks. </TD
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001728></TR
1729><TR
1730><TD
1731WIDTH="20%"
1732ALIGN="RIGHT"
1733VALIGN="TOP"
1734><I
1735CLASS="EMPHASIS"
1736>Returns</I
1737> :</TD
1738><TD
1739WIDTH="80%"
1740ALIGN="LEFT"
1741VALIGN="TOP"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00001742>the resulting document tree</TD
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001743></TR
1744></TABLE
1745><P
1746></P
1747></DIV
1748></DIV
1749><HR><DIV
1750CLASS="REFSECT2"
1751><A
Daniel Veillard7c29ce22000-08-12 21:20:53 +00001752NAME="AEN9649"
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001753></A
1754><H3
1755><A
1756NAME="HTMLPARSEFILE"
1757></A
1758>htmlParseFile ()</H3
1759><TABLE
1760BORDER="0"
1761BGCOLOR="#D6E8FF"
1762WIDTH="100%"
1763CELLPADDING="6"
1764><TR
1765><TD
1766><PRE
1767CLASS="PROGRAMLISTING"
1768><A
1769HREF="gnome-xml-htmlparser.html#HTMLDOCPTR"
1770>htmlDocPtr</A
1771> htmlParseFile (const char *filename,
1772 const char *encoding);</PRE
1773></TD
1774></TR
1775></TABLE
1776><P
1777>parse an HTML file and build a tree. Automatic support for ZLIB/Compress
1778compressed document is provided by default if found at compile-time.</P
1779><P
1780></P
1781><DIV
1782CLASS="INFORMALTABLE"
1783><P
1784></P
1785><TABLE
1786BORDER="0"
1787WIDTH="100%"
1788BGCOLOR="#FFD0D0"
1789CELLSPACING="0"
1790CELLPADDING="4"
1791CLASS="CALSTABLE"
1792><TR
1793><TD
1794WIDTH="20%"
1795ALIGN="RIGHT"
1796VALIGN="TOP"
1797><TT
1798CLASS="PARAMETER"
1799><I
1800>filename</I
1801></TT
1802>&nbsp;:</TD
1803><TD
1804WIDTH="80%"
1805ALIGN="LEFT"
1806VALIGN="TOP"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00001807> the filename</TD
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001808></TR
1809><TR
1810><TD
1811WIDTH="20%"
1812ALIGN="RIGHT"
1813VALIGN="TOP"
1814><TT
1815CLASS="PARAMETER"
1816><I
1817>encoding</I
1818></TT
1819>&nbsp;:</TD
1820><TD
1821WIDTH="80%"
1822ALIGN="LEFT"
1823VALIGN="TOP"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00001824> a free form C string describing the HTML document encoding, or NULL</TD
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001825></TR
1826><TR
1827><TD
1828WIDTH="20%"
1829ALIGN="RIGHT"
1830VALIGN="TOP"
1831><I
1832CLASS="EMPHASIS"
1833>Returns</I
1834> :</TD
1835><TD
1836WIDTH="80%"
1837ALIGN="LEFT"
1838VALIGN="TOP"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00001839>the resulting document tree</TD
1840></TR
1841></TABLE
1842><P
1843></P
1844></DIV
1845></DIV
1846><HR><DIV
1847CLASS="REFSECT2"
1848><A
Daniel Veillard7c29ce22000-08-12 21:20:53 +00001849NAME="AEN9673"
Daniel Veillarde46e20d2000-07-14 15:02:46 +00001850></A
1851><H3
1852><A
1853NAME="UTF8TOHTML"
1854></A
1855>UTF8ToHtml ()</H3
1856><TABLE
1857BORDER="0"
1858BGCOLOR="#D6E8FF"
1859WIDTH="100%"
1860CELLPADDING="6"
1861><TR
1862><TD
1863><PRE
1864CLASS="PROGRAMLISTING"
1865>int UTF8ToHtml (unsigned char *out,
1866 int *outlen,
1867 unsigned char *in,
1868 int *inlen);</PRE
1869></TD
1870></TR
1871></TABLE
1872><P
1873>Take a block of UTF-8 chars in and try to convert it to an ASCII
1874plus HTML entities block of chars out.</P
1875><P
1876></P
1877><DIV
1878CLASS="INFORMALTABLE"
1879><P
1880></P
1881><TABLE
1882BORDER="0"
1883WIDTH="100%"
1884BGCOLOR="#FFD0D0"
1885CELLSPACING="0"
1886CELLPADDING="4"
1887CLASS="CALSTABLE"
1888><TR
1889><TD
1890WIDTH="20%"
1891ALIGN="RIGHT"
1892VALIGN="TOP"
1893><TT
1894CLASS="PARAMETER"
1895><I
1896>out</I
1897></TT
1898>&nbsp;:</TD
1899><TD
1900WIDTH="80%"
1901ALIGN="LEFT"
1902VALIGN="TOP"
1903> a pointer to an array of bytes to store the result</TD
1904></TR
1905><TR
1906><TD
1907WIDTH="20%"
1908ALIGN="RIGHT"
1909VALIGN="TOP"
1910><TT
1911CLASS="PARAMETER"
1912><I
1913>outlen</I
1914></TT
1915>&nbsp;:</TD
1916><TD
1917WIDTH="80%"
1918ALIGN="LEFT"
1919VALIGN="TOP"
1920> the length of <TT
1921CLASS="PARAMETER"
1922><I
1923>out</I
1924></TT
1925></TD
1926></TR
1927><TR
1928><TD
1929WIDTH="20%"
1930ALIGN="RIGHT"
1931VALIGN="TOP"
1932><TT
1933CLASS="PARAMETER"
1934><I
1935>in</I
1936></TT
1937>&nbsp;:</TD
1938><TD
1939WIDTH="80%"
1940ALIGN="LEFT"
1941VALIGN="TOP"
1942> a pointer to an array of UTF-8 chars</TD
1943></TR
1944><TR
1945><TD
1946WIDTH="20%"
1947ALIGN="RIGHT"
1948VALIGN="TOP"
1949><TT
1950CLASS="PARAMETER"
1951><I
1952>inlen</I
1953></TT
1954>&nbsp;:</TD
1955><TD
1956WIDTH="80%"
1957ALIGN="LEFT"
1958VALIGN="TOP"
1959> the length of <TT
1960CLASS="PARAMETER"
1961><I
1962>in</I
1963></TT
1964></TD
1965></TR
1966><TR
1967><TD
1968WIDTH="20%"
1969ALIGN="RIGHT"
1970VALIGN="TOP"
1971><I
1972CLASS="EMPHASIS"
1973>Returns</I
1974> :</TD
1975><TD
1976WIDTH="80%"
1977ALIGN="LEFT"
1978VALIGN="TOP"
1979>0 if success, -2 if the transcoding fails, or -1 otherwise
1980The value of <TT
1981CLASS="PARAMETER"
1982><I
1983>inlen</I
1984></TT
1985> after return is the number of octets consumed
1986as the return value is positive, else unpredictiable.
1987The value of <TT
1988CLASS="PARAMETER"
1989><I
1990>outlen</I
1991></TT
1992> after return is the number of octets consumed.</TD
1993></TR
1994></TABLE
1995><P
1996></P
1997></DIV
1998></DIV
1999><HR><DIV
2000CLASS="REFSECT2"
2001><A
Daniel Veillard7c29ce22000-08-12 21:20:53 +00002002NAME="AEN9708"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00002003></A
2004><H3
2005><A
2006NAME="HTMLFREEPARSERCTXT"
2007></A
2008>htmlFreeParserCtxt ()</H3
2009><TABLE
2010BORDER="0"
2011BGCOLOR="#D6E8FF"
2012WIDTH="100%"
2013CELLPADDING="6"
2014><TR
2015><TD
2016><PRE
2017CLASS="PROGRAMLISTING"
2018>void htmlFreeParserCtxt (<A
2019HREF="gnome-xml-htmlparser.html#HTMLPARSERCTXTPTR"
2020>htmlParserCtxtPtr</A
2021> ctxt);</PRE
2022></TD
2023></TR
2024></TABLE
2025><P
2026>Free all the memory used by a parser context. However the parsed
2027document in ctxt-&gt;myDoc is not freed.</P
2028><P
2029></P
2030><DIV
2031CLASS="INFORMALTABLE"
2032><P
2033></P
2034><TABLE
2035BORDER="0"
2036WIDTH="100%"
2037BGCOLOR="#FFD0D0"
2038CELLSPACING="0"
2039CELLPADDING="4"
2040CLASS="CALSTABLE"
2041><TR
2042><TD
2043WIDTH="20%"
2044ALIGN="RIGHT"
2045VALIGN="TOP"
2046><TT
2047CLASS="PARAMETER"
2048><I
2049>ctxt</I
2050></TT
2051>&nbsp;:</TD
2052><TD
2053WIDTH="80%"
2054ALIGN="LEFT"
2055VALIGN="TOP"
2056> an HTML parser context</TD
2057></TR
2058></TABLE
2059><P
2060></P
2061></DIV
2062></DIV
2063><HR><DIV
2064CLASS="REFSECT2"
2065><A
Daniel Veillard7c29ce22000-08-12 21:20:53 +00002066NAME="AEN9724"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00002067></A
2068><H3
2069><A
2070NAME="HTMLCREATEPUSHPARSERCTXT"
2071></A
2072>htmlCreatePushParserCtxt ()</H3
2073><TABLE
2074BORDER="0"
2075BGCOLOR="#D6E8FF"
2076WIDTH="100%"
2077CELLPADDING="6"
2078><TR
2079><TD
2080><PRE
2081CLASS="PROGRAMLISTING"
2082><A
2083HREF="gnome-xml-htmlparser.html#HTMLPARSERCTXTPTR"
2084>htmlParserCtxtPtr</A
2085> htmlCreatePushParserCtxt (<A
2086HREF="gnome-xml-htmlparser.html#HTMLSAXHANDLERPTR"
2087>htmlSAXHandlerPtr</A
2088> sax,
2089 void *user_data,
2090 const char *chunk,
2091 int size,
2092 const char *filename,
2093 <A
2094HREF="gnome-xml-encoding.html#XMLCHARENCODING"
2095>xmlCharEncoding</A
2096> enc);</PRE
2097></TD
2098></TR
2099></TABLE
2100><P
2101>Create a parser context for using the HTML parser in push mode
2102To allow content encoding detection, <TT
2103CLASS="PARAMETER"
2104><I
2105>size</I
2106></TT
2107> should be &gt;= 4
2108The value of <TT
2109CLASS="PARAMETER"
2110><I
2111>filename</I
2112></TT
2113> is used for fetching external entities
2114and error/warning reports.</P
2115><P
2116></P
2117><DIV
2118CLASS="INFORMALTABLE"
2119><P
2120></P
2121><TABLE
2122BORDER="0"
2123WIDTH="100%"
2124BGCOLOR="#FFD0D0"
2125CELLSPACING="0"
2126CELLPADDING="4"
2127CLASS="CALSTABLE"
2128><TR
2129><TD
2130WIDTH="20%"
2131ALIGN="RIGHT"
2132VALIGN="TOP"
2133><TT
2134CLASS="PARAMETER"
2135><I
2136>sax</I
2137></TT
2138>&nbsp;:</TD
2139><TD
2140WIDTH="80%"
2141ALIGN="LEFT"
2142VALIGN="TOP"
2143> a SAX handler</TD
2144></TR
2145><TR
2146><TD
2147WIDTH="20%"
2148ALIGN="RIGHT"
2149VALIGN="TOP"
2150><TT
2151CLASS="PARAMETER"
2152><I
2153>user_data</I
2154></TT
2155>&nbsp;:</TD
2156><TD
2157WIDTH="80%"
2158ALIGN="LEFT"
2159VALIGN="TOP"
2160> The user data returned on SAX callbacks</TD
2161></TR
2162><TR
2163><TD
2164WIDTH="20%"
2165ALIGN="RIGHT"
2166VALIGN="TOP"
2167><TT
2168CLASS="PARAMETER"
2169><I
2170>chunk</I
2171></TT
2172>&nbsp;:</TD
2173><TD
2174WIDTH="80%"
2175ALIGN="LEFT"
2176VALIGN="TOP"
2177> a pointer to an array of chars</TD
2178></TR
2179><TR
2180><TD
2181WIDTH="20%"
2182ALIGN="RIGHT"
2183VALIGN="TOP"
2184><TT
2185CLASS="PARAMETER"
2186><I
2187>size</I
2188></TT
2189>&nbsp;:</TD
2190><TD
2191WIDTH="80%"
2192ALIGN="LEFT"
2193VALIGN="TOP"
2194> number of chars in the array</TD
2195></TR
2196><TR
2197><TD
2198WIDTH="20%"
2199ALIGN="RIGHT"
2200VALIGN="TOP"
2201><TT
2202CLASS="PARAMETER"
2203><I
2204>filename</I
2205></TT
2206>&nbsp;:</TD
2207><TD
2208WIDTH="80%"
2209ALIGN="LEFT"
2210VALIGN="TOP"
2211> an optional file name or URI</TD
2212></TR
2213><TR
2214><TD
2215WIDTH="20%"
2216ALIGN="RIGHT"
2217VALIGN="TOP"
2218><TT
2219CLASS="PARAMETER"
2220><I
2221>enc</I
2222></TT
2223>&nbsp;:</TD
2224><TD
2225WIDTH="80%"
2226ALIGN="LEFT"
2227VALIGN="TOP"
2228> an optional encoding</TD
2229></TR
2230><TR
2231><TD
2232WIDTH="20%"
2233ALIGN="RIGHT"
2234VALIGN="TOP"
2235><I
2236CLASS="EMPHASIS"
2237>Returns</I
2238> :</TD
2239><TD
2240WIDTH="80%"
2241ALIGN="LEFT"
2242VALIGN="TOP"
2243>the new parser context or NULL</TD
2244></TR
2245></TABLE
2246><P
2247></P
2248></DIV
2249></DIV
2250><HR><DIV
2251CLASS="REFSECT2"
2252><A
Daniel Veillard7c29ce22000-08-12 21:20:53 +00002253NAME="AEN9768"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00002254></A
2255><H3
2256><A
2257NAME="HTMLPARSECHUNK"
2258></A
2259>htmlParseChunk ()</H3
2260><TABLE
2261BORDER="0"
2262BGCOLOR="#D6E8FF"
2263WIDTH="100%"
2264CELLPADDING="6"
2265><TR
2266><TD
2267><PRE
2268CLASS="PROGRAMLISTING"
2269>int htmlParseChunk (<A
2270HREF="gnome-xml-htmlparser.html#HTMLPARSERCTXTPTR"
2271>htmlParserCtxtPtr</A
2272> ctxt,
2273 const char *chunk,
2274 int size,
2275 int terminate);</PRE
2276></TD
2277></TR
2278></TABLE
2279><P
2280>Parse a Chunk of memory</P
2281><P
2282></P
2283><DIV
2284CLASS="INFORMALTABLE"
2285><P
2286></P
2287><TABLE
2288BORDER="0"
2289WIDTH="100%"
2290BGCOLOR="#FFD0D0"
2291CELLSPACING="0"
2292CELLPADDING="4"
2293CLASS="CALSTABLE"
2294><TR
2295><TD
2296WIDTH="20%"
2297ALIGN="RIGHT"
2298VALIGN="TOP"
2299><TT
2300CLASS="PARAMETER"
2301><I
2302>ctxt</I
2303></TT
2304>&nbsp;:</TD
2305><TD
2306WIDTH="80%"
2307ALIGN="LEFT"
2308VALIGN="TOP"
2309> an XML parser context</TD
2310></TR
2311><TR
2312><TD
2313WIDTH="20%"
2314ALIGN="RIGHT"
2315VALIGN="TOP"
2316><TT
2317CLASS="PARAMETER"
2318><I
2319>chunk</I
2320></TT
2321>&nbsp;:</TD
2322><TD
2323WIDTH="80%"
2324ALIGN="LEFT"
2325VALIGN="TOP"
2326> an char array</TD
2327></TR
2328><TR
2329><TD
2330WIDTH="20%"
2331ALIGN="RIGHT"
2332VALIGN="TOP"
2333><TT
2334CLASS="PARAMETER"
2335><I
2336>size</I
2337></TT
2338>&nbsp;:</TD
2339><TD
2340WIDTH="80%"
2341ALIGN="LEFT"
2342VALIGN="TOP"
2343> the size in byte of the chunk</TD
2344></TR
2345><TR
2346><TD
2347WIDTH="20%"
2348ALIGN="RIGHT"
2349VALIGN="TOP"
2350><TT
2351CLASS="PARAMETER"
2352><I
2353>terminate</I
2354></TT
2355>&nbsp;:</TD
2356><TD
2357WIDTH="80%"
2358ALIGN="LEFT"
2359VALIGN="TOP"
2360> last chunk indicator</TD
2361></TR
2362><TR
2363><TD
2364WIDTH="20%"
2365ALIGN="RIGHT"
2366VALIGN="TOP"
2367><I
2368CLASS="EMPHASIS"
2369>Returns</I
2370> :</TD
2371><TD
2372WIDTH="80%"
2373ALIGN="LEFT"
2374VALIGN="TOP"
2375>zero if no error, the xmlParserErrors otherwise.</TD
Daniel Veillard437b87b2000-01-03 17:30:46 +00002376></TR
2377></TABLE
2378><P
2379></P
2380></DIV
2381></DIV
Daniel Veillard1566d3a1999-07-15 14:24:29 +00002382></DIV
2383><DIV
2384CLASS="NAVFOOTER"
Daniel Veillard00fdf371999-10-08 09:40:39 +00002385><BR
2386CLEAR="all"><BR><TABLE
Daniel Veillard1566d3a1999-07-15 14:24:29 +00002387WIDTH="100%"
2388BORDER="0"
2389BGCOLOR="#000000"
2390CELLPADDING="1"
2391CELLSPACING="0"
2392><TR
2393><TD
2394WIDTH="25%"
2395BGCOLOR="#C00000"
2396ALIGN="left"
2397><A
Daniel Veillard6bd26dc1999-09-03 14:28:40 +00002398HREF="gnome-xml-xml-error.html"
Daniel Veillard1566d3a1999-07-15 14:24:29 +00002399><FONT
2400COLOR="#FFFFFF"
2401SIZE="3"
2402><B
2403>&#60;&#60;&#60; Previous Page</B
2404></FONT
2405></A
2406></TD
2407><TD
2408WIDTH="25%"
2409BGCOLOR="#0000C0"
2410ALIGN="center"
2411><FONT
2412COLOR="#FFFFFF"
2413SIZE="3"
2414><B
2415><A
2416HREF="book1.html"
2417><FONT
2418COLOR="#FFFFFF"
2419SIZE="3"
2420><B
2421>Home</B
2422></FONT
2423></A
2424></B
2425></FONT
2426></TD
2427><TD
2428WIDTH="25%"
2429BGCOLOR="#00C000"
2430ALIGN="center"
2431><FONT
2432COLOR="#FFFFFF"
2433SIZE="3"
2434><B
2435><A
Daniel Veillard35008381999-10-25 13:15:52 +00002436HREF="libxml-lib.html"
Daniel Veillard1566d3a1999-07-15 14:24:29 +00002437><FONT
2438COLOR="#FFFFFF"
2439SIZE="3"
2440><B
2441>Up</B
2442></FONT
2443></A
2444></B
2445></FONT
2446></TD
2447><TD
2448WIDTH="25%"
2449BGCOLOR="#C00000"
2450ALIGN="right"
2451><A
2452HREF="gnome-xml-htmltree.html"
2453><FONT
2454COLOR="#FFFFFF"
2455SIZE="3"
2456><B
2457>Next Page &#62;&#62;&#62;</B
2458></FONT
2459></A
2460></TD
2461></TR
2462><TR
2463><TD
2464COLSPAN="2"
2465ALIGN="left"
2466><FONT
2467COLOR="#FFFFFF"
2468SIZE="3"
2469><B
Daniel Veillard6bd26dc1999-09-03 14:28:40 +00002470>xml-error</B
Daniel Veillard1566d3a1999-07-15 14:24:29 +00002471></FONT
2472></TD
2473><TD
2474COLSPAN="2"
2475ALIGN="right"
2476><FONT
2477COLOR="#FFFFFF"
2478SIZE="3"
2479><B
2480>HTMLtree</B
2481></FONT
2482></TD
2483></TR
2484></TABLE
2485></DIV
2486></BODY
2487></HTML
2488>