blob: ce38b230280879562fd5df4abe1924d799d0cab9 [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 Veillard7e99c632000-10-06 12:59:53 +0000118NAME="AEN9508"
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 Veillard7e99c632000-10-06 12:59:53 +0000126NAME="AEN9511"
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 Veillard3bff2b02000-10-01 20:33:47 +0000213<A
214HREF="gnome-xml-htmlparser.html#HTMLENTITYDESCPTR"
215>htmlEntityDescPtr</A
216> <A
217HREF="gnome-xml-htmlparser.html#HTMLENTITYVALUELOOKUP"
218>htmlEntityValueLookup</A
219> (int value);
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000220int <A
221HREF="gnome-xml-htmlparser.html#HTMLISAUTOCLOSED"
222>htmlIsAutoClosed</A
223> (<A
224HREF="gnome-xml-htmlparser.html#HTMLDOCPTR"
225>htmlDocPtr</A
226> doc,
227 <A
228HREF="gnome-xml-htmlparser.html#HTMLNODEPTR"
229>htmlNodePtr</A
230> elem);
231int <A
232HREF="gnome-xml-htmlparser.html#HTMLAUTOCLOSETAG"
233>htmlAutoCloseTag</A
234> (<A
235HREF="gnome-xml-htmlparser.html#HTMLDOCPTR"
236>htmlDocPtr</A
237> doc,
238 const <A
239HREF="gnome-xml-tree.html#XMLCHAR"
240>xmlChar</A
241> *name,
242 <A
243HREF="gnome-xml-htmlparser.html#HTMLNODEPTR"
244>htmlNodePtr</A
245> elem);
246<A
247HREF="gnome-xml-htmlparser.html#HTMLENTITYDESCPTR"
248>htmlEntityDescPtr</A
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000249> <A
250HREF="gnome-xml-htmlparser.html#HTMLPARSEENTITYREF"
251>htmlParseEntityRef</A
252> (<A
253HREF="gnome-xml-htmlparser.html#HTMLPARSERCTXTPTR"
254>htmlParserCtxtPtr</A
255> ctxt,
256 <A
Daniel Veillarddd6b3671999-09-23 22:19:22 +0000257HREF="gnome-xml-tree.html#XMLCHAR"
258>xmlChar</A
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000259> **str);
260int <A
261HREF="gnome-xml-htmlparser.html#HTMLPARSECHARREF"
262>htmlParseCharRef</A
263> (<A
264HREF="gnome-xml-htmlparser.html#HTMLPARSERCTXTPTR"
265>htmlParserCtxtPtr</A
266> ctxt);
267void <A
268HREF="gnome-xml-htmlparser.html#HTMLPARSEELEMENT"
269>htmlParseElement</A
270> (<A
271HREF="gnome-xml-htmlparser.html#HTMLPARSERCTXTPTR"
272>htmlParserCtxtPtr</A
273> ctxt);
274<A
275HREF="gnome-xml-htmlparser.html#HTMLDOCPTR"
276>htmlDocPtr</A
277> <A
278HREF="gnome-xml-htmlparser.html#HTMLSAXPARSEDOC"
279>htmlSAXParseDoc</A
280> (<A
Daniel Veillarddd6b3671999-09-23 22:19:22 +0000281HREF="gnome-xml-tree.html#XMLCHAR"
282>xmlChar</A
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000283> *cur,
284 const char *encoding,
285 <A
286HREF="gnome-xml-htmlparser.html#HTMLSAXHANDLERPTR"
287>htmlSAXHandlerPtr</A
288> sax,
289 void *userData);
290<A
291HREF="gnome-xml-htmlparser.html#HTMLDOCPTR"
292>htmlDocPtr</A
293> <A
294HREF="gnome-xml-htmlparser.html#HTMLPARSEDOC"
295>htmlParseDoc</A
296> (<A
Daniel Veillarddd6b3671999-09-23 22:19:22 +0000297HREF="gnome-xml-tree.html#XMLCHAR"
298>xmlChar</A
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000299> *cur,
300 const char *encoding);
301<A
302HREF="gnome-xml-htmlparser.html#HTMLDOCPTR"
303>htmlDocPtr</A
304> <A
305HREF="gnome-xml-htmlparser.html#HTMLSAXPARSEFILE"
306>htmlSAXParseFile</A
307> (const char *filename,
308 const char *encoding,
309 <A
310HREF="gnome-xml-htmlparser.html#HTMLSAXHANDLERPTR"
311>htmlSAXHandlerPtr</A
312> sax,
313 void *userData);
314<A
315HREF="gnome-xml-htmlparser.html#HTMLDOCPTR"
316>htmlDocPtr</A
317> <A
318HREF="gnome-xml-htmlparser.html#HTMLPARSEFILE"
319>htmlParseFile</A
320> (const char *filename,
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000321 const char *encoding);
Daniel Veillarde46e20d2000-07-14 15:02:46 +0000322int <A
323HREF="gnome-xml-htmlparser.html#UTF8TOHTML"
324>UTF8ToHtml</A
325> (unsigned char *out,
326 int *outlen,
327 unsigned char *in,
328 int *inlen);
Daniel Veillard3bff2b02000-10-01 20:33:47 +0000329int <A
330HREF="gnome-xml-htmlparser.html#HTMLENCODEENTITIES"
331>htmlEncodeEntities</A
332> (unsigned char *out,
333 int *outlen,
334 unsigned char *in,
335 int *inlen,
336 int quoteChar);
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000337void <A
338HREF="gnome-xml-htmlparser.html#HTMLFREEPARSERCTXT"
339>htmlFreeParserCtxt</A
340> (<A
341HREF="gnome-xml-htmlparser.html#HTMLPARSERCTXTPTR"
342>htmlParserCtxtPtr</A
343> ctxt);
344<A
345HREF="gnome-xml-htmlparser.html#HTMLPARSERCTXTPTR"
346>htmlParserCtxtPtr</A
347> <A
348HREF="gnome-xml-htmlparser.html#HTMLCREATEPUSHPARSERCTXT"
349>htmlCreatePushParserCtxt</A
350> (<A
351HREF="gnome-xml-htmlparser.html#HTMLSAXHANDLERPTR"
352>htmlSAXHandlerPtr</A
353> sax,
354 void *user_data,
355 const char *chunk,
356 int size,
357 const char *filename,
358 <A
359HREF="gnome-xml-encoding.html#XMLCHARENCODING"
360>xmlCharEncoding</A
361> enc);
362int <A
363HREF="gnome-xml-htmlparser.html#HTMLPARSECHUNK"
364>htmlParseChunk</A
365> (<A
366HREF="gnome-xml-htmlparser.html#HTMLPARSERCTXTPTR"
367>htmlParserCtxtPtr</A
368> ctxt,
369 const char *chunk,
370 int size,
371 int terminate);</PRE
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000372></TD
373></TR
374></TABLE
375></DIV
376><DIV
377CLASS="REFSECT1"
378><A
Daniel Veillard7e99c632000-10-06 12:59:53 +0000379NAME="AEN9572"
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000380></A
381><H2
382>Description</H2
383><P
384></P
385></DIV
386><DIV
387CLASS="REFSECT1"
388><A
Daniel Veillard7e99c632000-10-06 12:59:53 +0000389NAME="AEN9575"
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000390></A
391><H2
392>Details</H2
393><DIV
394CLASS="REFSECT2"
395><A
Daniel Veillard7e99c632000-10-06 12:59:53 +0000396NAME="AEN9577"
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000397></A
398><H3
399><A
400NAME="HTMLPARSERCTXT"
401></A
402>htmlParserCtxt</H3
403><P
404></P
405></DIV
406><HR><DIV
407CLASS="REFSECT2"
408><A
Daniel Veillard7e99c632000-10-06 12:59:53 +0000409NAME="AEN9581"
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000410></A
411><H3
412><A
413NAME="HTMLPARSERCTXTPTR"
414></A
415>htmlParserCtxtPtr</H3
416><P
417></P
418></DIV
419><HR><DIV
420CLASS="REFSECT2"
421><A
Daniel Veillard7e99c632000-10-06 12:59:53 +0000422NAME="AEN9585"
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000423></A
424><H3
425><A
426NAME="HTMLPARSERNODEINFO"
427></A
428>htmlParserNodeInfo</H3
429><P
430></P
431></DIV
432><HR><DIV
433CLASS="REFSECT2"
434><A
Daniel Veillard7e99c632000-10-06 12:59:53 +0000435NAME="AEN9589"
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000436></A
437><H3
438><A
439NAME="HTMLSAXHANDLER"
440></A
441>htmlSAXHandler</H3
442><P
443></P
444></DIV
445><HR><DIV
446CLASS="REFSECT2"
447><A
Daniel Veillard7e99c632000-10-06 12:59:53 +0000448NAME="AEN9593"
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000449></A
450><H3
451><A
452NAME="HTMLSAXHANDLERPTR"
453></A
454>htmlSAXHandlerPtr</H3
455><P
456></P
457></DIV
458><HR><DIV
459CLASS="REFSECT2"
460><A
Daniel Veillard7e99c632000-10-06 12:59:53 +0000461NAME="AEN9597"
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000462></A
463><H3
464><A
465NAME="HTMLPARSERINPUT"
466></A
467>htmlParserInput</H3
468><P
469></P
470></DIV
471><HR><DIV
472CLASS="REFSECT2"
473><A
Daniel Veillard7e99c632000-10-06 12:59:53 +0000474NAME="AEN9601"
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000475></A
476><H3
477><A
478NAME="HTMLPARSERINPUTPTR"
479></A
480>htmlParserInputPtr</H3
481><P
482></P
483></DIV
484><HR><DIV
485CLASS="REFSECT2"
486><A
Daniel Veillard7e99c632000-10-06 12:59:53 +0000487NAME="AEN9605"
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000488></A
489><H3
490><A
491NAME="HTMLDOCPTR"
492></A
493>htmlDocPtr</H3
494><P
495></P
496></DIV
497><HR><DIV
498CLASS="REFSECT2"
499><A
Daniel Veillard7e99c632000-10-06 12:59:53 +0000500NAME="AEN9609"
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000501></A
502><H3
503><A
504NAME="HTMLNODEPTR"
505></A
506>htmlNodePtr</H3
507><P
508></P
509></DIV
510><HR><DIV
511CLASS="REFSECT2"
512><A
Daniel Veillard7e99c632000-10-06 12:59:53 +0000513NAME="AEN9613"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000514></A
515><H3
516><A
517NAME="HTMLELEMDESC"
518></A
519>struct htmlElemDesc</H3
520><TABLE
521BORDER="0"
522BGCOLOR="#D6E8FF"
523WIDTH="100%"
524CELLPADDING="6"
525><TR
526><TD
527><PRE
528CLASS="PROGRAMLISTING"
529>struct htmlElemDesc {
530 const char *name; /* The tag name */
531 int startTag; /* Whether the start tag can be implied */
532 int endTag; /* Whether the end tag can be implied */
533 int empty; /* Is this an empty element ? */
534 int depr; /* Is this a deprecated element ? */
535 int dtd; /* 1: only in Loose DTD, 2: only Frameset one */
536 const char *desc; /* the description */
537};</PRE
538></TD
539></TR
540></TABLE
541><P
542></P
543></DIV
544><HR><DIV
545CLASS="REFSECT2"
546><A
Daniel Veillard7e99c632000-10-06 12:59:53 +0000547NAME="AEN9618"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000548></A
549><H3
550><A
551NAME="HTMLELEMDESCPTR"
552></A
553>htmlElemDescPtr</H3
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000554><P
555></P
556></DIV
557><HR><DIV
558CLASS="REFSECT2"
559><A
Daniel Veillard7e99c632000-10-06 12:59:53 +0000560NAME="AEN9622"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000561></A
562><H3
563><A
564NAME="HTMLENTITYDESC"
565></A
566>struct htmlEntityDesc</H3
567><TABLE
568BORDER="0"
569BGCOLOR="#D6E8FF"
570WIDTH="100%"
571CELLPADDING="6"
572><TR
573><TD
574><PRE
575CLASS="PROGRAMLISTING"
576>struct htmlEntityDesc {
577 int value; /* the UNICODE value for the character */
578 const char *name; /* The entity name */
579 const char *desc; /* the description */
580};</PRE
581></TD
582></TR
583></TABLE
584><P
585></P
586></DIV
587><HR><DIV
588CLASS="REFSECT2"
589><A
Daniel Veillard7e99c632000-10-06 12:59:53 +0000590NAME="AEN9627"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000591></A
592><H3
593><A
594NAME="HTMLENTITYDESCPTR"
595></A
596>htmlEntityDescPtr</H3
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000597><P
598></P
599></DIV
600><HR><DIV
601CLASS="REFSECT2"
602><A
Daniel Veillard7e99c632000-10-06 12:59:53 +0000603NAME="AEN9631"
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000604></A
605><H3
606><A
607NAME="HTMLTAGLOOKUP"
608></A
609>htmlTagLookup ()</H3
610><TABLE
611BORDER="0"
612BGCOLOR="#D6E8FF"
613WIDTH="100%"
614CELLPADDING="6"
615><TR
616><TD
617><PRE
618CLASS="PROGRAMLISTING"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000619><A
620HREF="gnome-xml-htmlparser.html#HTMLELEMDESCPTR"
621>htmlElemDescPtr</A
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000622> htmlTagLookup (const <A
Daniel Veillarddd6b3671999-09-23 22:19:22 +0000623HREF="gnome-xml-tree.html#XMLCHAR"
624>xmlChar</A
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000625> *tag);</PRE
626></TD
627></TR
628></TABLE
629><P
630>Lookup the HTML tag in the ElementTable</P
631><P
632></P
633><DIV
634CLASS="INFORMALTABLE"
635><P
636></P
637><TABLE
638BORDER="0"
639WIDTH="100%"
640BGCOLOR="#FFD0D0"
641CELLSPACING="0"
642CELLPADDING="4"
643CLASS="CALSTABLE"
644><TR
645><TD
646WIDTH="20%"
647ALIGN="RIGHT"
648VALIGN="TOP"
649><TT
650CLASS="PARAMETER"
651><I
652>tag</I
653></TT
654>&nbsp;:</TD
655><TD
656WIDTH="80%"
657ALIGN="LEFT"
658VALIGN="TOP"
Daniel Veillard7e99c632000-10-06 12:59:53 +0000659>&nbsp;</TD
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000660></TR
661><TR
662><TD
663WIDTH="20%"
664ALIGN="RIGHT"
665VALIGN="TOP"
666><I
667CLASS="EMPHASIS"
668>Returns</I
669> :</TD
670><TD
671WIDTH="80%"
672ALIGN="LEFT"
673VALIGN="TOP"
Daniel Veillard7e99c632000-10-06 12:59:53 +0000674>&nbsp;</TD
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000675></TR
676></TABLE
677><P
678></P
679></DIV
680></DIV
681><HR><DIV
682CLASS="REFSECT2"
683><A
Daniel Veillard7e99c632000-10-06 12:59:53 +0000684NAME="AEN9652"
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000685></A
686><H3
687><A
688NAME="HTMLENTITYLOOKUP"
689></A
690>htmlEntityLookup ()</H3
691><TABLE
692BORDER="0"
693BGCOLOR="#D6E8FF"
694WIDTH="100%"
695CELLPADDING="6"
696><TR
697><TD
698><PRE
699CLASS="PROGRAMLISTING"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000700><A
701HREF="gnome-xml-htmlparser.html#HTMLENTITYDESCPTR"
702>htmlEntityDescPtr</A
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000703> htmlEntityLookup (const <A
Daniel Veillarddd6b3671999-09-23 22:19:22 +0000704HREF="gnome-xml-tree.html#XMLCHAR"
705>xmlChar</A
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000706> *name);</PRE
707></TD
708></TR
709></TABLE
710><P
711>Lookup the given entity in EntitiesTable</P
712><P
713>TODO: the linear scan is really ugly, an hash table is really needed.</P
714><P
715></P
716><DIV
717CLASS="INFORMALTABLE"
718><P
719></P
720><TABLE
721BORDER="0"
722WIDTH="100%"
723BGCOLOR="#FFD0D0"
724CELLSPACING="0"
725CELLPADDING="4"
726CLASS="CALSTABLE"
727><TR
728><TD
729WIDTH="20%"
730ALIGN="RIGHT"
731VALIGN="TOP"
732><TT
733CLASS="PARAMETER"
734><I
735>name</I
736></TT
737>&nbsp;:</TD
738><TD
739WIDTH="80%"
740ALIGN="LEFT"
741VALIGN="TOP"
Daniel Veillard7e99c632000-10-06 12:59:53 +0000742>&nbsp;</TD
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000743></TR
744><TR
745><TD
746WIDTH="20%"
747ALIGN="RIGHT"
748VALIGN="TOP"
749><I
750CLASS="EMPHASIS"
751>Returns</I
752> :</TD
753><TD
754WIDTH="80%"
755ALIGN="LEFT"
756VALIGN="TOP"
Daniel Veillard7e99c632000-10-06 12:59:53 +0000757>&nbsp;</TD
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000758></TR
759></TABLE
760><P
761></P
762></DIV
763></DIV
764><HR><DIV
765CLASS="REFSECT2"
766><A
Daniel Veillard7e99c632000-10-06 12:59:53 +0000767NAME="AEN9674"
Daniel Veillard3bff2b02000-10-01 20:33:47 +0000768></A
769><H3
770><A
771NAME="HTMLENTITYVALUELOOKUP"
772></A
773>htmlEntityValueLookup ()</H3
774><TABLE
775BORDER="0"
776BGCOLOR="#D6E8FF"
777WIDTH="100%"
778CELLPADDING="6"
779><TR
780><TD
781><PRE
782CLASS="PROGRAMLISTING"
783><A
784HREF="gnome-xml-htmlparser.html#HTMLENTITYDESCPTR"
785>htmlEntityDescPtr</A
786> htmlEntityValueLookup (int value);</PRE
787></TD
788></TR
789></TABLE
790><P
791>Lookup the given entity in EntitiesTable</P
792><P
793>TODO: the linear scan is really ugly, an hash table is really needed.</P
794><P
795></P
796><DIV
797CLASS="INFORMALTABLE"
798><P
799></P
800><TABLE
801BORDER="0"
802WIDTH="100%"
803BGCOLOR="#FFD0D0"
804CELLSPACING="0"
805CELLPADDING="4"
806CLASS="CALSTABLE"
807><TR
808><TD
809WIDTH="20%"
810ALIGN="RIGHT"
811VALIGN="TOP"
812><TT
813CLASS="PARAMETER"
814><I
815>value</I
816></TT
817>&nbsp;:</TD
818><TD
819WIDTH="80%"
820ALIGN="LEFT"
821VALIGN="TOP"
Daniel Veillard7e99c632000-10-06 12:59:53 +0000822>&nbsp;</TD
Daniel Veillard3bff2b02000-10-01 20:33:47 +0000823></TR
824><TR
825><TD
826WIDTH="20%"
827ALIGN="RIGHT"
828VALIGN="TOP"
829><I
830CLASS="EMPHASIS"
831>Returns</I
832> :</TD
833><TD
834WIDTH="80%"
835ALIGN="LEFT"
836VALIGN="TOP"
Daniel Veillard7e99c632000-10-06 12:59:53 +0000837>&nbsp;</TD
Daniel Veillard3bff2b02000-10-01 20:33:47 +0000838></TR
839></TABLE
840><P
841></P
842></DIV
843></DIV
844><HR><DIV
845CLASS="REFSECT2"
846><A
Daniel Veillard7e99c632000-10-06 12:59:53 +0000847NAME="AEN9695"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000848></A
849><H3
850><A
851NAME="HTMLISAUTOCLOSED"
852></A
853>htmlIsAutoClosed ()</H3
854><TABLE
855BORDER="0"
856BGCOLOR="#D6E8FF"
857WIDTH="100%"
858CELLPADDING="6"
859><TR
860><TD
861><PRE
862CLASS="PROGRAMLISTING"
863>int htmlIsAutoClosed (<A
864HREF="gnome-xml-htmlparser.html#HTMLDOCPTR"
865>htmlDocPtr</A
866> doc,
867 <A
868HREF="gnome-xml-htmlparser.html#HTMLNODEPTR"
869>htmlNodePtr</A
870> elem);</PRE
871></TD
872></TR
873></TABLE
874><P
875>The HTmL DtD allows a tag to implicitely close other tags.
876The list is kept in htmlStartClose array. This function checks
877if a tag is autoclosed by one of it's child</P
878><P
879></P
880><DIV
881CLASS="INFORMALTABLE"
882><P
883></P
884><TABLE
885BORDER="0"
886WIDTH="100%"
887BGCOLOR="#FFD0D0"
888CELLSPACING="0"
889CELLPADDING="4"
890CLASS="CALSTABLE"
891><TR
892><TD
893WIDTH="20%"
894ALIGN="RIGHT"
895VALIGN="TOP"
896><TT
897CLASS="PARAMETER"
898><I
899>doc</I
900></TT
901>&nbsp;:</TD
902><TD
903WIDTH="80%"
904ALIGN="LEFT"
905VALIGN="TOP"
Daniel Veillard7e99c632000-10-06 12:59:53 +0000906>&nbsp;</TD
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000907></TR
908><TR
909><TD
910WIDTH="20%"
911ALIGN="RIGHT"
912VALIGN="TOP"
913><TT
914CLASS="PARAMETER"
915><I
916>elem</I
917></TT
918>&nbsp;:</TD
919><TD
920WIDTH="80%"
921ALIGN="LEFT"
922VALIGN="TOP"
Daniel Veillard7e99c632000-10-06 12:59:53 +0000923>&nbsp;</TD
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000924></TR
925><TR
926><TD
927WIDTH="20%"
928ALIGN="RIGHT"
929VALIGN="TOP"
930><I
931CLASS="EMPHASIS"
932>Returns</I
933> :</TD
934><TD
935WIDTH="80%"
936ALIGN="LEFT"
937VALIGN="TOP"
Daniel Veillard7e99c632000-10-06 12:59:53 +0000938>&nbsp;</TD
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000939></TR
940></TABLE
941><P
942></P
943></DIV
944></DIV
945><HR><DIV
946CLASS="REFSECT2"
947><A
Daniel Veillard7e99c632000-10-06 12:59:53 +0000948NAME="AEN9720"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000949></A
950><H3
951><A
952NAME="HTMLAUTOCLOSETAG"
953></A
954>htmlAutoCloseTag ()</H3
955><TABLE
956BORDER="0"
957BGCOLOR="#D6E8FF"
958WIDTH="100%"
959CELLPADDING="6"
960><TR
961><TD
962><PRE
963CLASS="PROGRAMLISTING"
964>int htmlAutoCloseTag (<A
965HREF="gnome-xml-htmlparser.html#HTMLDOCPTR"
966>htmlDocPtr</A
967> doc,
968 const <A
969HREF="gnome-xml-tree.html#XMLCHAR"
970>xmlChar</A
971> *name,
972 <A
973HREF="gnome-xml-htmlparser.html#HTMLNODEPTR"
974>htmlNodePtr</A
975> elem);</PRE
976></TD
977></TR
978></TABLE
979><P
980>The HTmL DtD allows a tag to implicitely close other tags.
981The list is kept in htmlStartClose array. This function checks
982if the element or one of it's children would autoclose the
983given tag.</P
984><P
985></P
986><DIV
987CLASS="INFORMALTABLE"
988><P
989></P
990><TABLE
991BORDER="0"
992WIDTH="100%"
993BGCOLOR="#FFD0D0"
994CELLSPACING="0"
995CELLPADDING="4"
996CLASS="CALSTABLE"
997><TR
998><TD
999WIDTH="20%"
1000ALIGN="RIGHT"
1001VALIGN="TOP"
1002><TT
1003CLASS="PARAMETER"
1004><I
1005>doc</I
1006></TT
1007>&nbsp;:</TD
1008><TD
1009WIDTH="80%"
1010ALIGN="LEFT"
1011VALIGN="TOP"
Daniel Veillard7e99c632000-10-06 12:59:53 +00001012>&nbsp;</TD
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00001013></TR
1014><TR
1015><TD
1016WIDTH="20%"
1017ALIGN="RIGHT"
1018VALIGN="TOP"
1019><TT
1020CLASS="PARAMETER"
1021><I
1022>name</I
1023></TT
1024>&nbsp;:</TD
1025><TD
1026WIDTH="80%"
1027ALIGN="LEFT"
1028VALIGN="TOP"
Daniel Veillard7e99c632000-10-06 12:59:53 +00001029>&nbsp;</TD
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00001030></TR
1031><TR
1032><TD
1033WIDTH="20%"
1034ALIGN="RIGHT"
1035VALIGN="TOP"
1036><TT
1037CLASS="PARAMETER"
1038><I
1039>elem</I
1040></TT
1041>&nbsp;:</TD
1042><TD
1043WIDTH="80%"
1044ALIGN="LEFT"
1045VALIGN="TOP"
Daniel Veillard7e99c632000-10-06 12:59:53 +00001046>&nbsp;</TD
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00001047></TR
1048><TR
1049><TD
1050WIDTH="20%"
1051ALIGN="RIGHT"
1052VALIGN="TOP"
1053><I
1054CLASS="EMPHASIS"
1055>Returns</I
1056> :</TD
1057><TD
1058WIDTH="80%"
1059ALIGN="LEFT"
1060VALIGN="TOP"
Daniel Veillard7e99c632000-10-06 12:59:53 +00001061>&nbsp;</TD
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00001062></TR
1063></TABLE
1064><P
1065></P
1066></DIV
1067></DIV
1068><HR><DIV
1069CLASS="REFSECT2"
1070><A
Daniel Veillard7e99c632000-10-06 12:59:53 +00001071NAME="AEN9750"
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001072></A
1073><H3
1074><A
1075NAME="HTMLPARSEENTITYREF"
1076></A
1077>htmlParseEntityRef ()</H3
1078><TABLE
1079BORDER="0"
1080BGCOLOR="#D6E8FF"
1081WIDTH="100%"
1082CELLPADDING="6"
1083><TR
1084><TD
1085><PRE
1086CLASS="PROGRAMLISTING"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00001087><A
1088HREF="gnome-xml-htmlparser.html#HTMLENTITYDESCPTR"
1089>htmlEntityDescPtr</A
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001090> htmlParseEntityRef (<A
1091HREF="gnome-xml-htmlparser.html#HTMLPARSERCTXTPTR"
1092>htmlParserCtxtPtr</A
1093> ctxt,
1094 <A
Daniel Veillarddd6b3671999-09-23 22:19:22 +00001095HREF="gnome-xml-tree.html#XMLCHAR"
1096>xmlChar</A
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001097> **str);</PRE
1098></TD
1099></TR
1100></TABLE
1101><P
1102>parse an HTML ENTITY references</P
1103><P
1104>[68] EntityRef ::= '&amp;' Name ';'</P
1105><P
1106></P
1107><DIV
1108CLASS="INFORMALTABLE"
1109><P
1110></P
1111><TABLE
1112BORDER="0"
1113WIDTH="100%"
1114BGCOLOR="#FFD0D0"
1115CELLSPACING="0"
1116CELLPADDING="4"
1117CLASS="CALSTABLE"
1118><TR
1119><TD
1120WIDTH="20%"
1121ALIGN="RIGHT"
1122VALIGN="TOP"
1123><TT
1124CLASS="PARAMETER"
1125><I
1126>ctxt</I
1127></TT
1128>&nbsp;:</TD
1129><TD
1130WIDTH="80%"
1131ALIGN="LEFT"
1132VALIGN="TOP"
Daniel Veillard7e99c632000-10-06 12:59:53 +00001133>&nbsp;</TD
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001134></TR
1135><TR
1136><TD
1137WIDTH="20%"
1138ALIGN="RIGHT"
1139VALIGN="TOP"
1140><TT
1141CLASS="PARAMETER"
1142><I
1143>str</I
1144></TT
1145>&nbsp;:</TD
1146><TD
1147WIDTH="80%"
1148ALIGN="LEFT"
1149VALIGN="TOP"
Daniel Veillard7e99c632000-10-06 12:59:53 +00001150>&nbsp;</TD
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001151></TR
1152><TR
1153><TD
1154WIDTH="20%"
1155ALIGN="RIGHT"
1156VALIGN="TOP"
1157><I
1158CLASS="EMPHASIS"
1159>Returns</I
1160> :</TD
1161><TD
1162WIDTH="80%"
1163ALIGN="LEFT"
1164VALIGN="TOP"
Daniel Veillard7e99c632000-10-06 12:59:53 +00001165>&nbsp;</TD
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001166></TR
1167></TABLE
1168><P
1169></P
1170></DIV
1171></DIV
1172><HR><DIV
1173CLASS="REFSECT2"
1174><A
Daniel Veillard7e99c632000-10-06 12:59:53 +00001175NAME="AEN9777"
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001176></A
1177><H3
1178><A
1179NAME="HTMLPARSECHARREF"
1180></A
1181>htmlParseCharRef ()</H3
1182><TABLE
1183BORDER="0"
1184BGCOLOR="#D6E8FF"
1185WIDTH="100%"
1186CELLPADDING="6"
1187><TR
1188><TD
1189><PRE
1190CLASS="PROGRAMLISTING"
1191>int htmlParseCharRef (<A
1192HREF="gnome-xml-htmlparser.html#HTMLPARSERCTXTPTR"
1193>htmlParserCtxtPtr</A
1194> ctxt);</PRE
1195></TD
1196></TR
1197></TABLE
1198><P
1199>parse Reference declarations</P
1200><P
1201>[66] CharRef ::= '&amp;#' [0-9]+ ';' |
1202'&amp;<GTKDOCLINK
1203HREF="X"
1204>x</GTKDOCLINK
1205>' [0-9a-fA-F]+ ';'</P
1206><P
1207></P
1208><DIV
1209CLASS="INFORMALTABLE"
1210><P
1211></P
1212><TABLE
1213BORDER="0"
1214WIDTH="100%"
1215BGCOLOR="#FFD0D0"
1216CELLSPACING="0"
1217CELLPADDING="4"
1218CLASS="CALSTABLE"
1219><TR
1220><TD
1221WIDTH="20%"
1222ALIGN="RIGHT"
1223VALIGN="TOP"
1224><TT
1225CLASS="PARAMETER"
1226><I
1227>ctxt</I
1228></TT
1229>&nbsp;:</TD
1230><TD
1231WIDTH="80%"
1232ALIGN="LEFT"
1233VALIGN="TOP"
Daniel Veillard7e99c632000-10-06 12:59:53 +00001234>&nbsp;</TD
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001235></TR
1236><TR
1237><TD
1238WIDTH="20%"
1239ALIGN="RIGHT"
1240VALIGN="TOP"
1241><I
1242CLASS="EMPHASIS"
1243>Returns</I
1244> :</TD
1245><TD
1246WIDTH="80%"
1247ALIGN="LEFT"
1248VALIGN="TOP"
Daniel Veillard7e99c632000-10-06 12:59:53 +00001249>&nbsp;</TD
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001250></TR
1251></TABLE
1252><P
1253></P
1254></DIV
1255></DIV
1256><HR><DIV
1257CLASS="REFSECT2"
1258><A
Daniel Veillard7e99c632000-10-06 12:59:53 +00001259NAME="AEN9799"
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001260></A
1261><H3
1262><A
1263NAME="HTMLPARSEELEMENT"
1264></A
1265>htmlParseElement ()</H3
1266><TABLE
1267BORDER="0"
1268BGCOLOR="#D6E8FF"
1269WIDTH="100%"
1270CELLPADDING="6"
1271><TR
1272><TD
1273><PRE
1274CLASS="PROGRAMLISTING"
1275>void htmlParseElement (<A
1276HREF="gnome-xml-htmlparser.html#HTMLPARSERCTXTPTR"
1277>htmlParserCtxtPtr</A
1278> ctxt);</PRE
1279></TD
1280></TR
1281></TABLE
1282><P
1283>parse an HTML element, this is highly recursive</P
1284><P
1285>[39] element ::= EmptyElemTag | STag content ETag</P
1286><P
1287>[41] Attribute ::= Name Eq AttValue</P
1288><P
1289></P
1290><DIV
1291CLASS="INFORMALTABLE"
1292><P
1293></P
1294><TABLE
1295BORDER="0"
1296WIDTH="100%"
1297BGCOLOR="#FFD0D0"
1298CELLSPACING="0"
1299CELLPADDING="4"
1300CLASS="CALSTABLE"
1301><TR
1302><TD
1303WIDTH="20%"
1304ALIGN="RIGHT"
1305VALIGN="TOP"
1306><TT
1307CLASS="PARAMETER"
1308><I
1309>ctxt</I
1310></TT
1311>&nbsp;:</TD
1312><TD
1313WIDTH="80%"
1314ALIGN="LEFT"
1315VALIGN="TOP"
Daniel Veillard7e99c632000-10-06 12:59:53 +00001316>&nbsp;</TD
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001317></TR
1318></TABLE
1319><P
1320></P
1321></DIV
1322></DIV
1323><HR><DIV
1324CLASS="REFSECT2"
1325><A
Daniel Veillard7e99c632000-10-06 12:59:53 +00001326NAME="AEN9817"
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001327></A
1328><H3
1329><A
1330NAME="HTMLSAXPARSEDOC"
1331></A
1332>htmlSAXParseDoc ()</H3
1333><TABLE
1334BORDER="0"
1335BGCOLOR="#D6E8FF"
1336WIDTH="100%"
1337CELLPADDING="6"
1338><TR
1339><TD
1340><PRE
1341CLASS="PROGRAMLISTING"
1342><A
1343HREF="gnome-xml-htmlparser.html#HTMLDOCPTR"
1344>htmlDocPtr</A
1345> htmlSAXParseDoc (<A
Daniel Veillarddd6b3671999-09-23 22:19:22 +00001346HREF="gnome-xml-tree.html#XMLCHAR"
1347>xmlChar</A
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001348> *cur,
1349 const char *encoding,
1350 <A
1351HREF="gnome-xml-htmlparser.html#HTMLSAXHANDLERPTR"
1352>htmlSAXHandlerPtr</A
1353> sax,
1354 void *userData);</PRE
1355></TD
1356></TR
1357></TABLE
1358><P
1359>parse an HTML in-memory document and build a tree.
1360It use the given SAX function block to handle the parsing callback.
1361If sax is NULL, fallback to the default DOM tree building routines.</P
1362><P
1363></P
1364><DIV
1365CLASS="INFORMALTABLE"
1366><P
1367></P
1368><TABLE
1369BORDER="0"
1370WIDTH="100%"
1371BGCOLOR="#FFD0D0"
1372CELLSPACING="0"
1373CELLPADDING="4"
1374CLASS="CALSTABLE"
1375><TR
1376><TD
1377WIDTH="20%"
1378ALIGN="RIGHT"
1379VALIGN="TOP"
1380><TT
1381CLASS="PARAMETER"
1382><I
1383>cur</I
1384></TT
1385>&nbsp;:</TD
1386><TD
1387WIDTH="80%"
1388ALIGN="LEFT"
1389VALIGN="TOP"
Daniel Veillard7e99c632000-10-06 12:59:53 +00001390>&nbsp;</TD
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001391></TR
1392><TR
1393><TD
1394WIDTH="20%"
1395ALIGN="RIGHT"
1396VALIGN="TOP"
1397><TT
1398CLASS="PARAMETER"
1399><I
1400>encoding</I
1401></TT
1402>&nbsp;:</TD
1403><TD
1404WIDTH="80%"
1405ALIGN="LEFT"
1406VALIGN="TOP"
Daniel Veillard7e99c632000-10-06 12:59:53 +00001407>&nbsp;</TD
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001408></TR
1409><TR
1410><TD
1411WIDTH="20%"
1412ALIGN="RIGHT"
1413VALIGN="TOP"
1414><TT
1415CLASS="PARAMETER"
1416><I
1417>sax</I
1418></TT
1419>&nbsp;:</TD
1420><TD
1421WIDTH="80%"
1422ALIGN="LEFT"
1423VALIGN="TOP"
Daniel Veillard7e99c632000-10-06 12:59:53 +00001424>&nbsp;</TD
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001425></TR
1426><TR
1427><TD
1428WIDTH="20%"
1429ALIGN="RIGHT"
1430VALIGN="TOP"
1431><TT
1432CLASS="PARAMETER"
1433><I
1434>userData</I
1435></TT
1436>&nbsp;:</TD
1437><TD
1438WIDTH="80%"
1439ALIGN="LEFT"
1440VALIGN="TOP"
Daniel Veillard7e99c632000-10-06 12:59:53 +00001441>&nbsp;</TD
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001442></TR
1443><TR
1444><TD
1445WIDTH="20%"
1446ALIGN="RIGHT"
1447VALIGN="TOP"
1448><I
1449CLASS="EMPHASIS"
1450>Returns</I
1451> :</TD
1452><TD
1453WIDTH="80%"
1454ALIGN="LEFT"
1455VALIGN="TOP"
Daniel Veillard7e99c632000-10-06 12:59:53 +00001456>&nbsp;</TD
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001457></TR
1458></TABLE
1459><P
1460></P
1461></DIV
1462></DIV
1463><HR><DIV
1464CLASS="REFSECT2"
1465><A
Daniel Veillard7e99c632000-10-06 12:59:53 +00001466NAME="AEN9851"
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001467></A
1468><H3
1469><A
1470NAME="HTMLPARSEDOC"
1471></A
1472>htmlParseDoc ()</H3
1473><TABLE
1474BORDER="0"
1475BGCOLOR="#D6E8FF"
1476WIDTH="100%"
1477CELLPADDING="6"
1478><TR
1479><TD
1480><PRE
1481CLASS="PROGRAMLISTING"
1482><A
1483HREF="gnome-xml-htmlparser.html#HTMLDOCPTR"
1484>htmlDocPtr</A
1485> htmlParseDoc (<A
Daniel Veillarddd6b3671999-09-23 22:19:22 +00001486HREF="gnome-xml-tree.html#XMLCHAR"
1487>xmlChar</A
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001488> *cur,
1489 const char *encoding);</PRE
1490></TD
1491></TR
1492></TABLE
1493><P
1494>parse an HTML in-memory document and build a tree.</P
1495><P
1496></P
1497><DIV
1498CLASS="INFORMALTABLE"
1499><P
1500></P
1501><TABLE
1502BORDER="0"
1503WIDTH="100%"
1504BGCOLOR="#FFD0D0"
1505CELLSPACING="0"
1506CELLPADDING="4"
1507CLASS="CALSTABLE"
1508><TR
1509><TD
1510WIDTH="20%"
1511ALIGN="RIGHT"
1512VALIGN="TOP"
1513><TT
1514CLASS="PARAMETER"
1515><I
1516>cur</I
1517></TT
1518>&nbsp;:</TD
1519><TD
1520WIDTH="80%"
1521ALIGN="LEFT"
1522VALIGN="TOP"
Daniel Veillard7e99c632000-10-06 12:59:53 +00001523>&nbsp;</TD
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001524></TR
1525><TR
1526><TD
1527WIDTH="20%"
1528ALIGN="RIGHT"
1529VALIGN="TOP"
1530><TT
1531CLASS="PARAMETER"
1532><I
1533>encoding</I
1534></TT
1535>&nbsp;:</TD
1536><TD
1537WIDTH="80%"
1538ALIGN="LEFT"
1539VALIGN="TOP"
Daniel Veillard7e99c632000-10-06 12:59:53 +00001540>&nbsp;</TD
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001541></TR
1542><TR
1543><TD
1544WIDTH="20%"
1545ALIGN="RIGHT"
1546VALIGN="TOP"
1547><I
1548CLASS="EMPHASIS"
1549>Returns</I
1550> :</TD
1551><TD
1552WIDTH="80%"
1553ALIGN="LEFT"
1554VALIGN="TOP"
Daniel Veillard7e99c632000-10-06 12:59:53 +00001555>&nbsp;</TD
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001556></TR
1557></TABLE
1558><P
1559></P
1560></DIV
1561></DIV
1562><HR><DIV
1563CLASS="REFSECT2"
1564><A
Daniel Veillard7e99c632000-10-06 12:59:53 +00001565NAME="AEN9876"
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001566></A
1567><H3
1568><A
1569NAME="HTMLSAXPARSEFILE"
1570></A
1571>htmlSAXParseFile ()</H3
1572><TABLE
1573BORDER="0"
1574BGCOLOR="#D6E8FF"
1575WIDTH="100%"
1576CELLPADDING="6"
1577><TR
1578><TD
1579><PRE
1580CLASS="PROGRAMLISTING"
1581><A
1582HREF="gnome-xml-htmlparser.html#HTMLDOCPTR"
1583>htmlDocPtr</A
1584> htmlSAXParseFile (const char *filename,
1585 const char *encoding,
1586 <A
1587HREF="gnome-xml-htmlparser.html#HTMLSAXHANDLERPTR"
1588>htmlSAXHandlerPtr</A
1589> sax,
1590 void *userData);</PRE
1591></TD
1592></TR
1593></TABLE
1594><P
1595>parse an HTML file and build a tree. Automatic support for ZLIB/Compress
1596compressed document is provided by default if found at compile-time.
1597It use the given SAX function block to handle the parsing callback.
1598If sax is NULL, fallback to the default DOM tree building routines.</P
1599><P
1600></P
1601><DIV
1602CLASS="INFORMALTABLE"
1603><P
1604></P
1605><TABLE
1606BORDER="0"
1607WIDTH="100%"
1608BGCOLOR="#FFD0D0"
1609CELLSPACING="0"
1610CELLPADDING="4"
1611CLASS="CALSTABLE"
1612><TR
1613><TD
1614WIDTH="20%"
1615ALIGN="RIGHT"
1616VALIGN="TOP"
1617><TT
1618CLASS="PARAMETER"
1619><I
1620>filename</I
1621></TT
1622>&nbsp;:</TD
1623><TD
1624WIDTH="80%"
1625ALIGN="LEFT"
1626VALIGN="TOP"
Daniel Veillard7e99c632000-10-06 12:59:53 +00001627>&nbsp;</TD
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001628></TR
1629><TR
1630><TD
1631WIDTH="20%"
1632ALIGN="RIGHT"
1633VALIGN="TOP"
1634><TT
1635CLASS="PARAMETER"
1636><I
1637>encoding</I
1638></TT
1639>&nbsp;:</TD
1640><TD
1641WIDTH="80%"
1642ALIGN="LEFT"
1643VALIGN="TOP"
Daniel Veillard7e99c632000-10-06 12:59:53 +00001644>&nbsp;</TD
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001645></TR
1646><TR
1647><TD
1648WIDTH="20%"
1649ALIGN="RIGHT"
1650VALIGN="TOP"
1651><TT
1652CLASS="PARAMETER"
1653><I
1654>sax</I
1655></TT
1656>&nbsp;:</TD
1657><TD
1658WIDTH="80%"
1659ALIGN="LEFT"
1660VALIGN="TOP"
Daniel Veillard7e99c632000-10-06 12:59:53 +00001661>&nbsp;</TD
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001662></TR
1663><TR
1664><TD
1665WIDTH="20%"
1666ALIGN="RIGHT"
1667VALIGN="TOP"
1668><TT
1669CLASS="PARAMETER"
1670><I
1671>userData</I
1672></TT
1673>&nbsp;:</TD
1674><TD
1675WIDTH="80%"
1676ALIGN="LEFT"
1677VALIGN="TOP"
Daniel Veillard7e99c632000-10-06 12:59:53 +00001678>&nbsp;</TD
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001679></TR
1680><TR
1681><TD
1682WIDTH="20%"
1683ALIGN="RIGHT"
1684VALIGN="TOP"
1685><I
1686CLASS="EMPHASIS"
1687>Returns</I
1688> :</TD
1689><TD
1690WIDTH="80%"
1691ALIGN="LEFT"
1692VALIGN="TOP"
Daniel Veillard7e99c632000-10-06 12:59:53 +00001693>&nbsp;</TD
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001694></TR
1695></TABLE
1696><P
1697></P
1698></DIV
1699></DIV
1700><HR><DIV
1701CLASS="REFSECT2"
1702><A
Daniel Veillard7e99c632000-10-06 12:59:53 +00001703NAME="AEN9909"
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001704></A
1705><H3
1706><A
1707NAME="HTMLPARSEFILE"
1708></A
1709>htmlParseFile ()</H3
1710><TABLE
1711BORDER="0"
1712BGCOLOR="#D6E8FF"
1713WIDTH="100%"
1714CELLPADDING="6"
1715><TR
1716><TD
1717><PRE
1718CLASS="PROGRAMLISTING"
1719><A
1720HREF="gnome-xml-htmlparser.html#HTMLDOCPTR"
1721>htmlDocPtr</A
1722> htmlParseFile (const char *filename,
1723 const char *encoding);</PRE
1724></TD
1725></TR
1726></TABLE
1727><P
1728>parse an HTML file and build a tree. Automatic support for ZLIB/Compress
1729compressed document is provided by default if found at compile-time.</P
1730><P
1731></P
1732><DIV
1733CLASS="INFORMALTABLE"
1734><P
1735></P
1736><TABLE
1737BORDER="0"
1738WIDTH="100%"
1739BGCOLOR="#FFD0D0"
1740CELLSPACING="0"
1741CELLPADDING="4"
1742CLASS="CALSTABLE"
1743><TR
1744><TD
1745WIDTH="20%"
1746ALIGN="RIGHT"
1747VALIGN="TOP"
1748><TT
1749CLASS="PARAMETER"
1750><I
1751>filename</I
1752></TT
1753>&nbsp;:</TD
1754><TD
1755WIDTH="80%"
1756ALIGN="LEFT"
1757VALIGN="TOP"
Daniel Veillard7e99c632000-10-06 12:59:53 +00001758>&nbsp;</TD
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001759></TR
1760><TR
1761><TD
1762WIDTH="20%"
1763ALIGN="RIGHT"
1764VALIGN="TOP"
1765><TT
1766CLASS="PARAMETER"
1767><I
1768>encoding</I
1769></TT
1770>&nbsp;:</TD
1771><TD
1772WIDTH="80%"
1773ALIGN="LEFT"
1774VALIGN="TOP"
Daniel Veillard7e99c632000-10-06 12:59:53 +00001775>&nbsp;</TD
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001776></TR
1777><TR
1778><TD
1779WIDTH="20%"
1780ALIGN="RIGHT"
1781VALIGN="TOP"
1782><I
1783CLASS="EMPHASIS"
1784>Returns</I
1785> :</TD
1786><TD
1787WIDTH="80%"
1788ALIGN="LEFT"
1789VALIGN="TOP"
Daniel Veillard7e99c632000-10-06 12:59:53 +00001790>&nbsp;</TD
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00001791></TR
1792></TABLE
1793><P
1794></P
1795></DIV
1796></DIV
1797><HR><DIV
1798CLASS="REFSECT2"
1799><A
Daniel Veillard7e99c632000-10-06 12:59:53 +00001800NAME="AEN9933"
Daniel Veillarde46e20d2000-07-14 15:02:46 +00001801></A
1802><H3
1803><A
1804NAME="UTF8TOHTML"
1805></A
1806>UTF8ToHtml ()</H3
1807><TABLE
1808BORDER="0"
1809BGCOLOR="#D6E8FF"
1810WIDTH="100%"
1811CELLPADDING="6"
1812><TR
1813><TD
1814><PRE
1815CLASS="PROGRAMLISTING"
1816>int UTF8ToHtml (unsigned char *out,
1817 int *outlen,
1818 unsigned char *in,
1819 int *inlen);</PRE
1820></TD
1821></TR
1822></TABLE
1823><P
1824>Take a block of UTF-8 chars in and try to convert it to an ASCII
1825plus HTML entities block of chars out.</P
1826><P
1827></P
1828><DIV
1829CLASS="INFORMALTABLE"
1830><P
1831></P
1832><TABLE
1833BORDER="0"
1834WIDTH="100%"
1835BGCOLOR="#FFD0D0"
1836CELLSPACING="0"
1837CELLPADDING="4"
1838CLASS="CALSTABLE"
1839><TR
1840><TD
1841WIDTH="20%"
1842ALIGN="RIGHT"
1843VALIGN="TOP"
1844><TT
1845CLASS="PARAMETER"
1846><I
1847>out</I
1848></TT
1849>&nbsp;:</TD
1850><TD
1851WIDTH="80%"
1852ALIGN="LEFT"
1853VALIGN="TOP"
Daniel Veillard7e99c632000-10-06 12:59:53 +00001854>&nbsp;</TD
Daniel Veillarde46e20d2000-07-14 15:02:46 +00001855></TR
1856><TR
1857><TD
1858WIDTH="20%"
1859ALIGN="RIGHT"
1860VALIGN="TOP"
1861><TT
1862CLASS="PARAMETER"
1863><I
1864>outlen</I
1865></TT
1866>&nbsp;:</TD
1867><TD
1868WIDTH="80%"
1869ALIGN="LEFT"
1870VALIGN="TOP"
Daniel Veillard7e99c632000-10-06 12:59:53 +00001871>&nbsp;</TD
Daniel Veillarde46e20d2000-07-14 15:02:46 +00001872></TR
1873><TR
1874><TD
1875WIDTH="20%"
1876ALIGN="RIGHT"
1877VALIGN="TOP"
1878><TT
1879CLASS="PARAMETER"
1880><I
1881>in</I
1882></TT
1883>&nbsp;:</TD
1884><TD
1885WIDTH="80%"
1886ALIGN="LEFT"
1887VALIGN="TOP"
Daniel Veillard7e99c632000-10-06 12:59:53 +00001888>&nbsp;</TD
Daniel Veillarde46e20d2000-07-14 15:02:46 +00001889></TR
1890><TR
1891><TD
1892WIDTH="20%"
1893ALIGN="RIGHT"
1894VALIGN="TOP"
1895><TT
1896CLASS="PARAMETER"
1897><I
1898>inlen</I
1899></TT
1900>&nbsp;:</TD
1901><TD
1902WIDTH="80%"
1903ALIGN="LEFT"
1904VALIGN="TOP"
Daniel Veillard7e99c632000-10-06 12:59:53 +00001905>&nbsp;</TD
Daniel Veillarde46e20d2000-07-14 15:02:46 +00001906></TR
1907><TR
1908><TD
1909WIDTH="20%"
1910ALIGN="RIGHT"
1911VALIGN="TOP"
1912><I
1913CLASS="EMPHASIS"
1914>Returns</I
1915> :</TD
1916><TD
1917WIDTH="80%"
1918ALIGN="LEFT"
1919VALIGN="TOP"
Daniel Veillard7e99c632000-10-06 12:59:53 +00001920>&nbsp;</TD
Daniel Veillarde46e20d2000-07-14 15:02:46 +00001921></TR
1922></TABLE
1923><P
1924></P
1925></DIV
1926></DIV
1927><HR><DIV
1928CLASS="REFSECT2"
1929><A
Daniel Veillard7e99c632000-10-06 12:59:53 +00001930NAME="AEN9964"
Daniel Veillard3bff2b02000-10-01 20:33:47 +00001931></A
1932><H3
1933><A
1934NAME="HTMLENCODEENTITIES"
1935></A
1936>htmlEncodeEntities ()</H3
1937><TABLE
1938BORDER="0"
1939BGCOLOR="#D6E8FF"
1940WIDTH="100%"
1941CELLPADDING="6"
1942><TR
1943><TD
1944><PRE
1945CLASS="PROGRAMLISTING"
1946>int htmlEncodeEntities (unsigned char *out,
1947 int *outlen,
1948 unsigned char *in,
1949 int *inlen,
1950 int quoteChar);</PRE
1951></TD
1952></TR
1953></TABLE
1954><P
1955>Take a block of UTF-8 chars in and try to convert it to an ASCII
1956plus HTML entities block of chars out.</P
1957><P
1958></P
1959><DIV
1960CLASS="INFORMALTABLE"
1961><P
1962></P
1963><TABLE
1964BORDER="0"
1965WIDTH="100%"
1966BGCOLOR="#FFD0D0"
1967CELLSPACING="0"
1968CELLPADDING="4"
1969CLASS="CALSTABLE"
1970><TR
1971><TD
1972WIDTH="20%"
1973ALIGN="RIGHT"
1974VALIGN="TOP"
1975><TT
1976CLASS="PARAMETER"
1977><I
1978>out</I
1979></TT
1980>&nbsp;:</TD
1981><TD
1982WIDTH="80%"
1983ALIGN="LEFT"
1984VALIGN="TOP"
Daniel Veillard7e99c632000-10-06 12:59:53 +00001985>&nbsp;</TD
Daniel Veillard3bff2b02000-10-01 20:33:47 +00001986></TR
1987><TR
1988><TD
1989WIDTH="20%"
1990ALIGN="RIGHT"
1991VALIGN="TOP"
1992><TT
1993CLASS="PARAMETER"
1994><I
1995>outlen</I
1996></TT
1997>&nbsp;:</TD
1998><TD
1999WIDTH="80%"
2000ALIGN="LEFT"
2001VALIGN="TOP"
Daniel Veillard7e99c632000-10-06 12:59:53 +00002002>&nbsp;</TD
Daniel Veillard3bff2b02000-10-01 20:33:47 +00002003></TR
2004><TR
2005><TD
2006WIDTH="20%"
2007ALIGN="RIGHT"
2008VALIGN="TOP"
2009><TT
2010CLASS="PARAMETER"
2011><I
2012>in</I
2013></TT
2014>&nbsp;:</TD
2015><TD
2016WIDTH="80%"
2017ALIGN="LEFT"
2018VALIGN="TOP"
Daniel Veillard7e99c632000-10-06 12:59:53 +00002019>&nbsp;</TD
Daniel Veillard3bff2b02000-10-01 20:33:47 +00002020></TR
2021><TR
2022><TD
2023WIDTH="20%"
2024ALIGN="RIGHT"
2025VALIGN="TOP"
2026><TT
2027CLASS="PARAMETER"
2028><I
2029>inlen</I
2030></TT
2031>&nbsp;:</TD
2032><TD
2033WIDTH="80%"
2034ALIGN="LEFT"
2035VALIGN="TOP"
Daniel Veillard7e99c632000-10-06 12:59:53 +00002036>&nbsp;</TD
Daniel Veillard3bff2b02000-10-01 20:33:47 +00002037></TR
2038><TR
2039><TD
2040WIDTH="20%"
2041ALIGN="RIGHT"
2042VALIGN="TOP"
2043><TT
2044CLASS="PARAMETER"
2045><I
2046>quoteChar</I
2047></TT
2048>&nbsp;:</TD
2049><TD
2050WIDTH="80%"
2051ALIGN="LEFT"
2052VALIGN="TOP"
Daniel Veillard7e99c632000-10-06 12:59:53 +00002053>&nbsp;</TD
Daniel Veillard3bff2b02000-10-01 20:33:47 +00002054></TR
2055><TR
2056><TD
2057WIDTH="20%"
2058ALIGN="RIGHT"
2059VALIGN="TOP"
2060><I
2061CLASS="EMPHASIS"
2062>Returns</I
2063> :</TD
2064><TD
2065WIDTH="80%"
2066ALIGN="LEFT"
2067VALIGN="TOP"
Daniel Veillard7e99c632000-10-06 12:59:53 +00002068>&nbsp;</TD
Daniel Veillard3bff2b02000-10-01 20:33:47 +00002069></TR
2070></TABLE
2071><P
2072></P
2073></DIV
2074></DIV
2075><HR><DIV
2076CLASS="REFSECT2"
2077><A
Daniel Veillard7e99c632000-10-06 12:59:53 +00002078NAME="AEN9999"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00002079></A
2080><H3
2081><A
2082NAME="HTMLFREEPARSERCTXT"
2083></A
2084>htmlFreeParserCtxt ()</H3
2085><TABLE
2086BORDER="0"
2087BGCOLOR="#D6E8FF"
2088WIDTH="100%"
2089CELLPADDING="6"
2090><TR
2091><TD
2092><PRE
2093CLASS="PROGRAMLISTING"
2094>void htmlFreeParserCtxt (<A
2095HREF="gnome-xml-htmlparser.html#HTMLPARSERCTXTPTR"
2096>htmlParserCtxtPtr</A
2097> ctxt);</PRE
2098></TD
2099></TR
2100></TABLE
2101><P
2102>Free all the memory used by a parser context. However the parsed
2103document in ctxt-&gt;myDoc is not freed.</P
2104><P
2105></P
2106><DIV
2107CLASS="INFORMALTABLE"
2108><P
2109></P
2110><TABLE
2111BORDER="0"
2112WIDTH="100%"
2113BGCOLOR="#FFD0D0"
2114CELLSPACING="0"
2115CELLPADDING="4"
2116CLASS="CALSTABLE"
2117><TR
2118><TD
2119WIDTH="20%"
2120ALIGN="RIGHT"
2121VALIGN="TOP"
2122><TT
2123CLASS="PARAMETER"
2124><I
2125>ctxt</I
2126></TT
2127>&nbsp;:</TD
2128><TD
2129WIDTH="80%"
2130ALIGN="LEFT"
2131VALIGN="TOP"
Daniel Veillard7e99c632000-10-06 12:59:53 +00002132>&nbsp;</TD
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00002133></TR
2134></TABLE
2135><P
2136></P
2137></DIV
2138></DIV
2139><HR><DIV
2140CLASS="REFSECT2"
2141><A
Daniel Veillard7e99c632000-10-06 12:59:53 +00002142NAME="AEN10015"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00002143></A
2144><H3
2145><A
2146NAME="HTMLCREATEPUSHPARSERCTXT"
2147></A
2148>htmlCreatePushParserCtxt ()</H3
2149><TABLE
2150BORDER="0"
2151BGCOLOR="#D6E8FF"
2152WIDTH="100%"
2153CELLPADDING="6"
2154><TR
2155><TD
2156><PRE
2157CLASS="PROGRAMLISTING"
2158><A
2159HREF="gnome-xml-htmlparser.html#HTMLPARSERCTXTPTR"
2160>htmlParserCtxtPtr</A
2161> htmlCreatePushParserCtxt (<A
2162HREF="gnome-xml-htmlparser.html#HTMLSAXHANDLERPTR"
2163>htmlSAXHandlerPtr</A
2164> sax,
2165 void *user_data,
2166 const char *chunk,
2167 int size,
2168 const char *filename,
2169 <A
2170HREF="gnome-xml-encoding.html#XMLCHARENCODING"
2171>xmlCharEncoding</A
2172> enc);</PRE
2173></TD
2174></TR
2175></TABLE
2176><P
2177>Create a parser context for using the HTML parser in push mode
2178To allow content encoding detection, <TT
2179CLASS="PARAMETER"
2180><I
2181>size</I
2182></TT
2183> should be &gt;= 4
2184The value of <TT
2185CLASS="PARAMETER"
2186><I
2187>filename</I
2188></TT
2189> is used for fetching external entities
2190and error/warning reports.</P
2191><P
2192></P
2193><DIV
2194CLASS="INFORMALTABLE"
2195><P
2196></P
2197><TABLE
2198BORDER="0"
2199WIDTH="100%"
2200BGCOLOR="#FFD0D0"
2201CELLSPACING="0"
2202CELLPADDING="4"
2203CLASS="CALSTABLE"
2204><TR
2205><TD
2206WIDTH="20%"
2207ALIGN="RIGHT"
2208VALIGN="TOP"
2209><TT
2210CLASS="PARAMETER"
2211><I
2212>sax</I
2213></TT
2214>&nbsp;:</TD
2215><TD
2216WIDTH="80%"
2217ALIGN="LEFT"
2218VALIGN="TOP"
Daniel Veillard7e99c632000-10-06 12:59:53 +00002219>&nbsp;</TD
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00002220></TR
2221><TR
2222><TD
2223WIDTH="20%"
2224ALIGN="RIGHT"
2225VALIGN="TOP"
2226><TT
2227CLASS="PARAMETER"
2228><I
2229>user_data</I
2230></TT
2231>&nbsp;:</TD
2232><TD
2233WIDTH="80%"
2234ALIGN="LEFT"
2235VALIGN="TOP"
Daniel Veillard7e99c632000-10-06 12:59:53 +00002236>&nbsp;</TD
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00002237></TR
2238><TR
2239><TD
2240WIDTH="20%"
2241ALIGN="RIGHT"
2242VALIGN="TOP"
2243><TT
2244CLASS="PARAMETER"
2245><I
2246>chunk</I
2247></TT
2248>&nbsp;:</TD
2249><TD
2250WIDTH="80%"
2251ALIGN="LEFT"
2252VALIGN="TOP"
Daniel Veillard7e99c632000-10-06 12:59:53 +00002253>&nbsp;</TD
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00002254></TR
2255><TR
2256><TD
2257WIDTH="20%"
2258ALIGN="RIGHT"
2259VALIGN="TOP"
2260><TT
2261CLASS="PARAMETER"
2262><I
2263>size</I
2264></TT
2265>&nbsp;:</TD
2266><TD
2267WIDTH="80%"
2268ALIGN="LEFT"
2269VALIGN="TOP"
Daniel Veillard7e99c632000-10-06 12:59:53 +00002270>&nbsp;</TD
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00002271></TR
2272><TR
2273><TD
2274WIDTH="20%"
2275ALIGN="RIGHT"
2276VALIGN="TOP"
2277><TT
2278CLASS="PARAMETER"
2279><I
2280>filename</I
2281></TT
2282>&nbsp;:</TD
2283><TD
2284WIDTH="80%"
2285ALIGN="LEFT"
2286VALIGN="TOP"
Daniel Veillard7e99c632000-10-06 12:59:53 +00002287>&nbsp;</TD
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00002288></TR
2289><TR
2290><TD
2291WIDTH="20%"
2292ALIGN="RIGHT"
2293VALIGN="TOP"
2294><TT
2295CLASS="PARAMETER"
2296><I
2297>enc</I
2298></TT
2299>&nbsp;:</TD
2300><TD
2301WIDTH="80%"
2302ALIGN="LEFT"
2303VALIGN="TOP"
Daniel Veillard7e99c632000-10-06 12:59:53 +00002304>&nbsp;</TD
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00002305></TR
2306><TR
2307><TD
2308WIDTH="20%"
2309ALIGN="RIGHT"
2310VALIGN="TOP"
2311><I
2312CLASS="EMPHASIS"
2313>Returns</I
2314> :</TD
2315><TD
2316WIDTH="80%"
2317ALIGN="LEFT"
2318VALIGN="TOP"
Daniel Veillard7e99c632000-10-06 12:59:53 +00002319>&nbsp;</TD
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00002320></TR
2321></TABLE
2322><P
2323></P
2324></DIV
2325></DIV
2326><HR><DIV
2327CLASS="REFSECT2"
2328><A
Daniel Veillard7e99c632000-10-06 12:59:53 +00002329NAME="AEN10059"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00002330></A
2331><H3
2332><A
2333NAME="HTMLPARSECHUNK"
2334></A
2335>htmlParseChunk ()</H3
2336><TABLE
2337BORDER="0"
2338BGCOLOR="#D6E8FF"
2339WIDTH="100%"
2340CELLPADDING="6"
2341><TR
2342><TD
2343><PRE
2344CLASS="PROGRAMLISTING"
2345>int htmlParseChunk (<A
2346HREF="gnome-xml-htmlparser.html#HTMLPARSERCTXTPTR"
2347>htmlParserCtxtPtr</A
2348> ctxt,
2349 const char *chunk,
2350 int size,
2351 int terminate);</PRE
2352></TD
2353></TR
2354></TABLE
2355><P
2356>Parse a Chunk of memory</P
2357><P
2358></P
2359><DIV
2360CLASS="INFORMALTABLE"
2361><P
2362></P
2363><TABLE
2364BORDER="0"
2365WIDTH="100%"
2366BGCOLOR="#FFD0D0"
2367CELLSPACING="0"
2368CELLPADDING="4"
2369CLASS="CALSTABLE"
2370><TR
2371><TD
2372WIDTH="20%"
2373ALIGN="RIGHT"
2374VALIGN="TOP"
2375><TT
2376CLASS="PARAMETER"
2377><I
2378>ctxt</I
2379></TT
2380>&nbsp;:</TD
2381><TD
2382WIDTH="80%"
2383ALIGN="LEFT"
2384VALIGN="TOP"
Daniel Veillard7e99c632000-10-06 12:59:53 +00002385>&nbsp;</TD
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00002386></TR
2387><TR
2388><TD
2389WIDTH="20%"
2390ALIGN="RIGHT"
2391VALIGN="TOP"
2392><TT
2393CLASS="PARAMETER"
2394><I
2395>chunk</I
2396></TT
2397>&nbsp;:</TD
2398><TD
2399WIDTH="80%"
2400ALIGN="LEFT"
2401VALIGN="TOP"
Daniel Veillard7e99c632000-10-06 12:59:53 +00002402>&nbsp;</TD
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00002403></TR
2404><TR
2405><TD
2406WIDTH="20%"
2407ALIGN="RIGHT"
2408VALIGN="TOP"
2409><TT
2410CLASS="PARAMETER"
2411><I
2412>size</I
2413></TT
2414>&nbsp;:</TD
2415><TD
2416WIDTH="80%"
2417ALIGN="LEFT"
2418VALIGN="TOP"
Daniel Veillard7e99c632000-10-06 12:59:53 +00002419>&nbsp;</TD
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00002420></TR
2421><TR
2422><TD
2423WIDTH="20%"
2424ALIGN="RIGHT"
2425VALIGN="TOP"
2426><TT
2427CLASS="PARAMETER"
2428><I
2429>terminate</I
2430></TT
2431>&nbsp;:</TD
2432><TD
2433WIDTH="80%"
2434ALIGN="LEFT"
2435VALIGN="TOP"
Daniel Veillard7e99c632000-10-06 12:59:53 +00002436>&nbsp;</TD
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00002437></TR
2438><TR
2439><TD
2440WIDTH="20%"
2441ALIGN="RIGHT"
2442VALIGN="TOP"
2443><I
2444CLASS="EMPHASIS"
2445>Returns</I
2446> :</TD
2447><TD
2448WIDTH="80%"
2449ALIGN="LEFT"
2450VALIGN="TOP"
Daniel Veillard7e99c632000-10-06 12:59:53 +00002451>&nbsp;</TD
Daniel Veillard437b87b2000-01-03 17:30:46 +00002452></TR
2453></TABLE
2454><P
2455></P
2456></DIV
2457></DIV
Daniel Veillard1566d3a1999-07-15 14:24:29 +00002458></DIV
2459><DIV
2460CLASS="NAVFOOTER"
Daniel Veillard00fdf371999-10-08 09:40:39 +00002461><BR
2462CLEAR="all"><BR><TABLE
Daniel Veillard1566d3a1999-07-15 14:24:29 +00002463WIDTH="100%"
2464BORDER="0"
2465BGCOLOR="#000000"
2466CELLPADDING="1"
2467CELLSPACING="0"
2468><TR
2469><TD
2470WIDTH="25%"
2471BGCOLOR="#C00000"
2472ALIGN="left"
2473><A
Daniel Veillard6bd26dc1999-09-03 14:28:40 +00002474HREF="gnome-xml-xml-error.html"
Daniel Veillard1566d3a1999-07-15 14:24:29 +00002475><FONT
2476COLOR="#FFFFFF"
2477SIZE="3"
2478><B
2479>&#60;&#60;&#60; Previous Page</B
2480></FONT
2481></A
2482></TD
2483><TD
2484WIDTH="25%"
2485BGCOLOR="#0000C0"
2486ALIGN="center"
2487><FONT
2488COLOR="#FFFFFF"
2489SIZE="3"
2490><B
2491><A
2492HREF="book1.html"
2493><FONT
2494COLOR="#FFFFFF"
2495SIZE="3"
2496><B
2497>Home</B
2498></FONT
2499></A
2500></B
2501></FONT
2502></TD
2503><TD
2504WIDTH="25%"
2505BGCOLOR="#00C000"
2506ALIGN="center"
2507><FONT
2508COLOR="#FFFFFF"
2509SIZE="3"
2510><B
2511><A
Daniel Veillard35008381999-10-25 13:15:52 +00002512HREF="libxml-lib.html"
Daniel Veillard1566d3a1999-07-15 14:24:29 +00002513><FONT
2514COLOR="#FFFFFF"
2515SIZE="3"
2516><B
2517>Up</B
2518></FONT
2519></A
2520></B
2521></FONT
2522></TD
2523><TD
2524WIDTH="25%"
2525BGCOLOR="#C00000"
2526ALIGN="right"
2527><A
2528HREF="gnome-xml-htmltree.html"
2529><FONT
2530COLOR="#FFFFFF"
2531SIZE="3"
2532><B
2533>Next Page &#62;&#62;&#62;</B
2534></FONT
2535></A
2536></TD
2537></TR
2538><TR
2539><TD
2540COLSPAN="2"
2541ALIGN="left"
2542><FONT
2543COLOR="#FFFFFF"
2544SIZE="3"
2545><B
Daniel Veillard6bd26dc1999-09-03 14:28:40 +00002546>xml-error</B
Daniel Veillard1566d3a1999-07-15 14:24:29 +00002547></FONT
2548></TD
2549><TD
2550COLSPAN="2"
2551ALIGN="right"
2552><FONT
2553COLOR="#FFFFFF"
2554SIZE="3"
2555><B
2556>HTMLtree</B
2557></FONT
2558></TD
2559></TR
2560></TABLE
2561></DIV
2562></BODY
2563></HTML
2564>