blob: 51b67342385413d6c3313b58996521085b8844cc [file] [log] [blame]
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001<HTML
2><HEAD
3><TITLE
4>HTMLtree</TITLE
5><META
6NAME="GENERATOR"
Daniel Veillard503b8932001-01-05 06:36:31 +00007CONTENT="Modular DocBook HTML Stylesheet Version 1.44"><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"
15TITLE="HTMLparser"
16HREF="gnome-xml-htmlparser.html"><LINK
17REL="NEXT"
18TITLE="xpath"
19HREF="gnome-xml-xpath.html"></HEAD
20><BODY
21BGCOLOR="#FFFFFF"
22TEXT="#000000"
Daniel Veillard503b8932001-01-05 06:36:31 +000023LINK="#0000FF"
24VLINK="#840084"
25ALINK="#0000FF"
Daniel Veillard1566d3a1999-07-15 14:24:29 +000026><DIV
27CLASS="NAVHEADER"
28><TABLE
29WIDTH="100%"
30BORDER="0"
31BGCOLOR="#000000"
32CELLPADDING="1"
33CELLSPACING="0"
34><TR
35><TH
36COLSPAN="4"
37ALIGN="center"
38><FONT
39COLOR="#FFFFFF"
40SIZE="5"
41>Gnome XML Library Reference Manual</FONT
42></TH
43></TR
44><TR
45><TD
46WIDTH="25%"
47BGCOLOR="#C00000"
48ALIGN="left"
49><A
50HREF="gnome-xml-htmlparser.html"
51><FONT
52COLOR="#FFFFFF"
53SIZE="3"
54><B
55>&#60;&#60;&#60; Previous Page</B
56></FONT
57></A
58></TD
59><TD
60WIDTH="25%"
61BGCOLOR="#0000C0"
62ALIGN="center"
63><FONT
64COLOR="#FFFFFF"
65SIZE="3"
66><B
67><A
68HREF="book1.html"
69><FONT
70COLOR="#FFFFFF"
71SIZE="3"
72><B
73>Home</B
74></FONT
75></A
76></B
77></FONT
78></TD
79><TD
80WIDTH="25%"
81BGCOLOR="#00C000"
82ALIGN="center"
83><FONT
84COLOR="#FFFFFF"
85SIZE="3"
86><B
87><A
Daniel Veillard35008381999-10-25 13:15:52 +000088HREF="libxml-lib.html"
Daniel Veillard1566d3a1999-07-15 14:24:29 +000089><FONT
90COLOR="#FFFFFF"
91SIZE="3"
92><B
93>Up</B
94></FONT
95></A
96></B
97></FONT
98></TD
99><TD
100WIDTH="25%"
101BGCOLOR="#C00000"
102ALIGN="right"
103><A
104HREF="gnome-xml-xpath.html"
105><FONT
106COLOR="#FFFFFF"
107SIZE="3"
108><B
109>Next Page &#62;&#62;&#62;</B
110></FONT
111></A
112></TD
113></TR
114></TABLE
115></DIV
116><H1
Daniel Veillard503b8932001-01-05 06:36:31 +0000117><A
118NAME="GNOME-XML-HTMLTREE"
119>HTMLtree</A
120></H1
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000121><DIV
122CLASS="REFNAMEDIV"
123><A
Daniel Veillard503b8932001-01-05 06:36:31 +0000124NAME="AEN10197"
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000125></A
126><H2
127>Name</H2
Daniel Veillard503b8932001-01-05 06:36:31 +0000128>HTMLtree&nbsp;--&nbsp;</DIV
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000129><DIV
130CLASS="REFSYNOPSISDIV"
131><A
Daniel Veillard503b8932001-01-05 06:36:31 +0000132NAME="AEN10200"
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000133></A
134><H2
135>Synopsis</H2
136><TABLE
137BORDER="0"
138BGCOLOR="#D6E8FF"
139WIDTH="100%"
140CELLPADDING="6"
141><TR
142><TD
143><PRE
144CLASS="SYNOPSIS"
145>&#13;
146
147#define <A
Daniel Veillard503b8932001-01-05 06:36:31 +0000148HREF="gnome-xml-htmltree.html#HTML-TEXT-NODE-CAPS"
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000149>HTML_TEXT_NODE</A
150>
151#define <A
Daniel Veillard503b8932001-01-05 06:36:31 +0000152HREF="gnome-xml-htmltree.html#HTML-ENTITY-REF-NODE-CAPS"
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000153>HTML_ENTITY_REF_NODE</A
154>
155#define <A
Daniel Veillard503b8932001-01-05 06:36:31 +0000156HREF="gnome-xml-htmltree.html#HTML-COMMENT-NODE-CAPS"
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000157>HTML_COMMENT_NODE</A
158>
Daniel Veillardb732a0e2000-10-15 11:27:01 +0000159#define <A
Daniel Veillard503b8932001-01-05 06:36:31 +0000160HREF="gnome-xml-htmltree.html#HTML-PRESERVE-NODE-CAPS"
Daniel Veillardb732a0e2000-10-15 11:27:01 +0000161>HTML_PRESERVE_NODE</A
162>
Daniel Veillarde46e20d2000-07-14 15:02:46 +0000163<A
164HREF="gnome-xml-htmlparser.html#HTMLDOCPTR"
165>htmlDocPtr</A
166> <A
167HREF="gnome-xml-htmltree.html#HTMLNEWDOC"
168>htmlNewDoc</A
169> (const <A
170HREF="gnome-xml-tree.html#XMLCHAR"
171>xmlChar</A
172> *URI,
173 const <A
174HREF="gnome-xml-tree.html#XMLCHAR"
175>xmlChar</A
176> *ExternalID);
Daniel Veillard3bff2b02000-10-01 20:33:47 +0000177<A
178HREF="gnome-xml-htmlparser.html#HTMLDOCPTR"
179>htmlDocPtr</A
180> <A
181HREF="gnome-xml-htmltree.html#HTMLNEWDOCNODTD"
182>htmlNewDocNoDtD</A
183> (const <A
184HREF="gnome-xml-tree.html#XMLCHAR"
185>xmlChar</A
186> *URI,
187 const <A
188HREF="gnome-xml-tree.html#XMLCHAR"
189>xmlChar</A
190> *ExternalID);
Daniel Veillarde46e20d2000-07-14 15:02:46 +0000191const <A
192HREF="gnome-xml-tree.html#XMLCHAR"
193>xmlChar</A
194>* <A
195HREF="gnome-xml-htmltree.html#HTMLGETMETAENCODING"
196>htmlGetMetaEncoding</A
197> (<A
198HREF="gnome-xml-htmlparser.html#HTMLDOCPTR"
199>htmlDocPtr</A
200> doc);
201int <A
202HREF="gnome-xml-htmltree.html#HTMLSETMETAENCODING"
203>htmlSetMetaEncoding</A
204> (<A
205HREF="gnome-xml-htmlparser.html#HTMLDOCPTR"
206>htmlDocPtr</A
207> doc,
208 const <A
209HREF="gnome-xml-tree.html#XMLCHAR"
210>xmlChar</A
211> *encoding);
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000212void <A
213HREF="gnome-xml-htmltree.html#HTMLDOCDUMPMEMORY"
214>htmlDocDumpMemory</A
215> (<A
216HREF="gnome-xml-tree.html#XMLDOCPTR"
217>xmlDocPtr</A
218> cur,
219 <A
Daniel Veillarddd6b3671999-09-23 22:19:22 +0000220HREF="gnome-xml-tree.html#XMLCHAR"
221>xmlChar</A
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000222> **mem,
223 int *size);
Daniel Veillarde46e20d2000-07-14 15:02:46 +0000224int <A
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000225HREF="gnome-xml-htmltree.html#HTMLDOCDUMP"
226>htmlDocDump</A
227> (<GTKDOCLINK
Daniel Veillard503b8932001-01-05 06:36:31 +0000228HREF="FILE-CAPS"
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000229>FILE</GTKDOCLINK
230> *f,
231 <A
232HREF="gnome-xml-tree.html#XMLDOCPTR"
233>xmlDocPtr</A
234> cur);
235int <A
236HREF="gnome-xml-htmltree.html#HTMLSAVEFILE"
237>htmlSaveFile</A
238> (const char *filename,
239 <A
240HREF="gnome-xml-tree.html#XMLDOCPTR"
241>xmlDocPtr</A
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000242> cur);
243void <A
244HREF="gnome-xml-htmltree.html#HTMLNODEDUMP"
245>htmlNodeDump</A
246> (<A
247HREF="gnome-xml-tree.html#XMLBUFFERPTR"
248>xmlBufferPtr</A
249> buf,
250 <A
251HREF="gnome-xml-tree.html#XMLDOCPTR"
252>xmlDocPtr</A
253> doc,
254 <A
255HREF="gnome-xml-tree.html#XMLNODEPTR"
256>xmlNodePtr</A
257> cur);
258void <A
259HREF="gnome-xml-htmltree.html#HTMLNODEDUMPFILE"
260>htmlNodeDumpFile</A
261> (<GTKDOCLINK
Daniel Veillard503b8932001-01-05 06:36:31 +0000262HREF="FILE-CAPS"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000263>FILE</GTKDOCLINK
264> *out,
265 <A
266HREF="gnome-xml-tree.html#XMLDOCPTR"
267>xmlDocPtr</A
268> doc,
269 <A
270HREF="gnome-xml-tree.html#XMLNODEPTR"
271>xmlNodePtr</A
Daniel Veillarde46e20d2000-07-14 15:02:46 +0000272> cur);
273int <A
274HREF="gnome-xml-htmltree.html#HTMLSAVEFILEENC"
275>htmlSaveFileEnc</A
276> (const char *filename,
277 <A
278HREF="gnome-xml-tree.html#XMLDOCPTR"
279>xmlDocPtr</A
280> cur,
281 const char *encoding);</PRE
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000282></TD
283></TR
284></TABLE
285></DIV
286><DIV
287CLASS="REFSECT1"
288><A
Daniel Veillard503b8932001-01-05 06:36:31 +0000289NAME="AEN10239"
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000290></A
291><H2
292>Description</H2
293><P
294></P
295></DIV
296><DIV
297CLASS="REFSECT1"
298><A
Daniel Veillard503b8932001-01-05 06:36:31 +0000299NAME="AEN10242"
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000300></A
301><H2
302>Details</H2
303><DIV
304CLASS="REFSECT2"
305><A
Daniel Veillard503b8932001-01-05 06:36:31 +0000306NAME="AEN10244"
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000307></A
308><H3
309><A
Daniel Veillard503b8932001-01-05 06:36:31 +0000310NAME="HTML-TEXT-NODE-CAPS"
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000311></A
312>HTML_TEXT_NODE</H3
313><TABLE
314BORDER="0"
315BGCOLOR="#D6E8FF"
316WIDTH="100%"
317CELLPADDING="6"
318><TR
319><TD
320><PRE
321CLASS="PROGRAMLISTING"
Daniel Veillardb732a0e2000-10-15 11:27:01 +0000322>#define HTML_TEXT_NODE XML_TEXT_NODE</PRE
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000323></TD
324></TR
325></TABLE
326><P
327></P
328></DIV
329><HR><DIV
330CLASS="REFSECT2"
331><A
Daniel Veillard503b8932001-01-05 06:36:31 +0000332NAME="AEN10249"
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000333></A
334><H3
335><A
Daniel Veillard503b8932001-01-05 06:36:31 +0000336NAME="HTML-ENTITY-REF-NODE-CAPS"
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000337></A
338>HTML_ENTITY_REF_NODE</H3
339><TABLE
340BORDER="0"
341BGCOLOR="#D6E8FF"
342WIDTH="100%"
343CELLPADDING="6"
344><TR
345><TD
346><PRE
347CLASS="PROGRAMLISTING"
Daniel Veillardb732a0e2000-10-15 11:27:01 +0000348>#define HTML_ENTITY_REF_NODE XML_ENTITY_REF_NODE</PRE
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000349></TD
350></TR
351></TABLE
352><P
353></P
354></DIV
355><HR><DIV
356CLASS="REFSECT2"
357><A
Daniel Veillard503b8932001-01-05 06:36:31 +0000358NAME="AEN10254"
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000359></A
360><H3
361><A
Daniel Veillard503b8932001-01-05 06:36:31 +0000362NAME="HTML-COMMENT-NODE-CAPS"
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000363></A
364>HTML_COMMENT_NODE</H3
365><TABLE
366BORDER="0"
367BGCOLOR="#D6E8FF"
368WIDTH="100%"
369CELLPADDING="6"
370><TR
371><TD
372><PRE
373CLASS="PROGRAMLISTING"
Daniel Veillardb732a0e2000-10-15 11:27:01 +0000374>#define HTML_COMMENT_NODE XML_COMMENT_NODE</PRE
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000375></TD
376></TR
377></TABLE
378><P
379></P
380></DIV
381><HR><DIV
382CLASS="REFSECT2"
383><A
Daniel Veillard503b8932001-01-05 06:36:31 +0000384NAME="AEN10259"
Daniel Veillardb732a0e2000-10-15 11:27:01 +0000385></A
386><H3
387><A
Daniel Veillard503b8932001-01-05 06:36:31 +0000388NAME="HTML-PRESERVE-NODE-CAPS"
Daniel Veillardb732a0e2000-10-15 11:27:01 +0000389></A
390>HTML_PRESERVE_NODE</H3
391><TABLE
392BORDER="0"
393BGCOLOR="#D6E8FF"
394WIDTH="100%"
395CELLPADDING="6"
396><TR
397><TD
398><PRE
399CLASS="PROGRAMLISTING"
400>#define HTML_PRESERVE_NODE XML_CDATA_SECTION_NODE</PRE
401></TD
402></TR
403></TABLE
404><P
405></P
406></DIV
407><HR><DIV
408CLASS="REFSECT2"
409><A
Daniel Veillard503b8932001-01-05 06:36:31 +0000410NAME="AEN10264"
Daniel Veillarde46e20d2000-07-14 15:02:46 +0000411></A
412><H3
413><A
414NAME="HTMLNEWDOC"
415></A
416>htmlNewDoc ()</H3
417><TABLE
418BORDER="0"
419BGCOLOR="#D6E8FF"
420WIDTH="100%"
421CELLPADDING="6"
422><TR
423><TD
424><PRE
425CLASS="PROGRAMLISTING"
426><A
427HREF="gnome-xml-htmlparser.html#HTMLDOCPTR"
428>htmlDocPtr</A
429> htmlNewDoc (const <A
430HREF="gnome-xml-tree.html#XMLCHAR"
431>xmlChar</A
432> *URI,
433 const <A
434HREF="gnome-xml-tree.html#XMLCHAR"
435>xmlChar</A
436> *ExternalID);</PRE
437></TD
438></TR
439></TABLE
440><P
441></P
442><P
443></P
444><DIV
445CLASS="INFORMALTABLE"
446><P
447></P
448><TABLE
449BORDER="0"
450WIDTH="100%"
451BGCOLOR="#FFD0D0"
452CELLSPACING="0"
453CELLPADDING="4"
454CLASS="CALSTABLE"
455><TR
456><TD
457WIDTH="20%"
458ALIGN="RIGHT"
459VALIGN="TOP"
460><TT
461CLASS="PARAMETER"
462><I
463>URI</I
464></TT
465>&nbsp;:</TD
466><TD
467WIDTH="80%"
468ALIGN="LEFT"
469VALIGN="TOP"
Daniel Veillardb732a0e2000-10-15 11:27:01 +0000470> URI for the dtd, or NULL</TD
Daniel Veillarde46e20d2000-07-14 15:02:46 +0000471></TR
472><TR
473><TD
474WIDTH="20%"
475ALIGN="RIGHT"
476VALIGN="TOP"
477><TT
478CLASS="PARAMETER"
479><I
480>ExternalID</I
481></TT
482>&nbsp;:</TD
483><TD
484WIDTH="80%"
485ALIGN="LEFT"
486VALIGN="TOP"
Daniel Veillardb732a0e2000-10-15 11:27:01 +0000487> the external ID of the DTD, or NULL</TD
Daniel Veillarde46e20d2000-07-14 15:02:46 +0000488></TR
489><TR
490><TD
491WIDTH="20%"
492ALIGN="RIGHT"
493VALIGN="TOP"
494><I
495CLASS="EMPHASIS"
496>Returns</I
497> :</TD
498><TD
499WIDTH="80%"
500ALIGN="LEFT"
501VALIGN="TOP"
Daniel Veillardb732a0e2000-10-15 11:27:01 +0000502>a new document</TD
Daniel Veillarde46e20d2000-07-14 15:02:46 +0000503></TR
504></TABLE
505><P
506></P
507></DIV
508></DIV
509><HR><DIV
510CLASS="REFSECT2"
511><A
Daniel Veillard503b8932001-01-05 06:36:31 +0000512NAME="AEN10290"
Daniel Veillard3bff2b02000-10-01 20:33:47 +0000513></A
514><H3
515><A
516NAME="HTMLNEWDOCNODTD"
517></A
518>htmlNewDocNoDtD ()</H3
519><TABLE
520BORDER="0"
521BGCOLOR="#D6E8FF"
522WIDTH="100%"
523CELLPADDING="6"
524><TR
525><TD
526><PRE
527CLASS="PROGRAMLISTING"
528><A
529HREF="gnome-xml-htmlparser.html#HTMLDOCPTR"
530>htmlDocPtr</A
531> htmlNewDocNoDtD (const <A
532HREF="gnome-xml-tree.html#XMLCHAR"
533>xmlChar</A
534> *URI,
535 const <A
536HREF="gnome-xml-tree.html#XMLCHAR"
537>xmlChar</A
538> *ExternalID);</PRE
539></TD
540></TR
541></TABLE
542><P
543></P
544><P
545></P
546><DIV
547CLASS="INFORMALTABLE"
548><P
549></P
550><TABLE
551BORDER="0"
552WIDTH="100%"
553BGCOLOR="#FFD0D0"
554CELLSPACING="0"
555CELLPADDING="4"
556CLASS="CALSTABLE"
557><TR
558><TD
559WIDTH="20%"
560ALIGN="RIGHT"
561VALIGN="TOP"
562><TT
563CLASS="PARAMETER"
564><I
565>URI</I
566></TT
567>&nbsp;:</TD
568><TD
569WIDTH="80%"
570ALIGN="LEFT"
571VALIGN="TOP"
Daniel Veillardb732a0e2000-10-15 11:27:01 +0000572> URI for the dtd, or NULL</TD
Daniel Veillard3bff2b02000-10-01 20:33:47 +0000573></TR
574><TR
575><TD
576WIDTH="20%"
577ALIGN="RIGHT"
578VALIGN="TOP"
579><TT
580CLASS="PARAMETER"
581><I
582>ExternalID</I
583></TT
584>&nbsp;:</TD
585><TD
586WIDTH="80%"
587ALIGN="LEFT"
588VALIGN="TOP"
Daniel Veillardb732a0e2000-10-15 11:27:01 +0000589> the external ID of the DTD, or NULL</TD
Daniel Veillard3bff2b02000-10-01 20:33:47 +0000590></TR
591><TR
592><TD
593WIDTH="20%"
594ALIGN="RIGHT"
595VALIGN="TOP"
596><I
597CLASS="EMPHASIS"
598>Returns</I
599> :</TD
600><TD
601WIDTH="80%"
602ALIGN="LEFT"
603VALIGN="TOP"
Daniel Veillardb732a0e2000-10-15 11:27:01 +0000604>a new document, do not intialize the DTD if not provided</TD
Daniel Veillard3bff2b02000-10-01 20:33:47 +0000605></TR
606></TABLE
607><P
608></P
609></DIV
610></DIV
611><HR><DIV
612CLASS="REFSECT2"
613><A
Daniel Veillard503b8932001-01-05 06:36:31 +0000614NAME="AEN10316"
Daniel Veillarde46e20d2000-07-14 15:02:46 +0000615></A
616><H3
617><A
618NAME="HTMLGETMETAENCODING"
619></A
620>htmlGetMetaEncoding ()</H3
621><TABLE
622BORDER="0"
623BGCOLOR="#D6E8FF"
624WIDTH="100%"
625CELLPADDING="6"
626><TR
627><TD
628><PRE
629CLASS="PROGRAMLISTING"
630>const <A
631HREF="gnome-xml-tree.html#XMLCHAR"
632>xmlChar</A
633>* htmlGetMetaEncoding (<A
634HREF="gnome-xml-htmlparser.html#HTMLDOCPTR"
635>htmlDocPtr</A
636> doc);</PRE
637></TD
638></TR
639></TABLE
640><P
641>Encoding definition lookup in the Meta tags</P
642><P
643></P
644><DIV
645CLASS="INFORMALTABLE"
646><P
647></P
648><TABLE
649BORDER="0"
650WIDTH="100%"
651BGCOLOR="#FFD0D0"
652CELLSPACING="0"
653CELLPADDING="4"
654CLASS="CALSTABLE"
655><TR
656><TD
657WIDTH="20%"
658ALIGN="RIGHT"
659VALIGN="TOP"
660><TT
661CLASS="PARAMETER"
662><I
663>doc</I
664></TT
665>&nbsp;:</TD
666><TD
667WIDTH="80%"
668ALIGN="LEFT"
669VALIGN="TOP"
Daniel Veillardb732a0e2000-10-15 11:27:01 +0000670> the document</TD
Daniel Veillarde46e20d2000-07-14 15:02:46 +0000671></TR
672><TR
673><TD
674WIDTH="20%"
675ALIGN="RIGHT"
676VALIGN="TOP"
677><I
678CLASS="EMPHASIS"
679>Returns</I
680> :</TD
681><TD
682WIDTH="80%"
683ALIGN="LEFT"
684VALIGN="TOP"
Daniel Veillardb732a0e2000-10-15 11:27:01 +0000685>the current encoding as flagged in the HTML source</TD
Daniel Veillarde46e20d2000-07-14 15:02:46 +0000686></TR
687></TABLE
688><P
689></P
690></DIV
691></DIV
692><HR><DIV
693CLASS="REFSECT2"
694><A
Daniel Veillard503b8932001-01-05 06:36:31 +0000695NAME="AEN10337"
Daniel Veillarde46e20d2000-07-14 15:02:46 +0000696></A
697><H3
698><A
699NAME="HTMLSETMETAENCODING"
700></A
701>htmlSetMetaEncoding ()</H3
702><TABLE
703BORDER="0"
704BGCOLOR="#D6E8FF"
705WIDTH="100%"
706CELLPADDING="6"
707><TR
708><TD
709><PRE
710CLASS="PROGRAMLISTING"
711>int htmlSetMetaEncoding (<A
712HREF="gnome-xml-htmlparser.html#HTMLDOCPTR"
713>htmlDocPtr</A
714> doc,
715 const <A
716HREF="gnome-xml-tree.html#XMLCHAR"
717>xmlChar</A
718> *encoding);</PRE
719></TD
720></TR
721></TABLE
722><P
723>Sets the current encoding in the Meta tags
724NOTE: this will not change the document content encoding, just
725the META flag associated.</P
726><P
727></P
728><DIV
729CLASS="INFORMALTABLE"
730><P
731></P
732><TABLE
733BORDER="0"
734WIDTH="100%"
735BGCOLOR="#FFD0D0"
736CELLSPACING="0"
737CELLPADDING="4"
738CLASS="CALSTABLE"
739><TR
740><TD
741WIDTH="20%"
742ALIGN="RIGHT"
743VALIGN="TOP"
744><TT
745CLASS="PARAMETER"
746><I
747>doc</I
748></TT
749>&nbsp;:</TD
750><TD
751WIDTH="80%"
752ALIGN="LEFT"
753VALIGN="TOP"
Daniel Veillardb732a0e2000-10-15 11:27:01 +0000754> the document</TD
Daniel Veillarde46e20d2000-07-14 15:02:46 +0000755></TR
756><TR
757><TD
758WIDTH="20%"
759ALIGN="RIGHT"
760VALIGN="TOP"
761><TT
762CLASS="PARAMETER"
763><I
764>encoding</I
765></TT
766>&nbsp;:</TD
767><TD
768WIDTH="80%"
769ALIGN="LEFT"
770VALIGN="TOP"
Daniel Veillardb732a0e2000-10-15 11:27:01 +0000771> the encoding string</TD
Daniel Veillarde46e20d2000-07-14 15:02:46 +0000772></TR
773><TR
774><TD
775WIDTH="20%"
776ALIGN="RIGHT"
777VALIGN="TOP"
778><I
779CLASS="EMPHASIS"
780>Returns</I
781> :</TD
782><TD
783WIDTH="80%"
784ALIGN="LEFT"
785VALIGN="TOP"
Daniel Veillardb732a0e2000-10-15 11:27:01 +0000786>0 in case of success and -1 in case of error</TD
Daniel Veillarde46e20d2000-07-14 15:02:46 +0000787></TR
788></TABLE
789><P
790></P
791></DIV
792></DIV
793><HR><DIV
794CLASS="REFSECT2"
795><A
Daniel Veillard503b8932001-01-05 06:36:31 +0000796NAME="AEN10362"
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000797></A
798><H3
799><A
800NAME="HTMLDOCDUMPMEMORY"
801></A
802>htmlDocDumpMemory ()</H3
803><TABLE
804BORDER="0"
805BGCOLOR="#D6E8FF"
806WIDTH="100%"
807CELLPADDING="6"
808><TR
809><TD
810><PRE
811CLASS="PROGRAMLISTING"
812>void htmlDocDumpMemory (<A
813HREF="gnome-xml-tree.html#XMLDOCPTR"
814>xmlDocPtr</A
815> cur,
816 <A
Daniel Veillarddd6b3671999-09-23 22:19:22 +0000817HREF="gnome-xml-tree.html#XMLCHAR"
818>xmlChar</A
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000819> **mem,
820 int *size);</PRE
821></TD
822></TR
823></TABLE
824><P
Daniel Veillarddd6b3671999-09-23 22:19:22 +0000825>Dump an HTML document in memory and return the xmlChar * and it's size.
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000826It's up to the caller to free the memory.</P
827><P
828></P
829><DIV
830CLASS="INFORMALTABLE"
831><P
832></P
833><TABLE
834BORDER="0"
835WIDTH="100%"
836BGCOLOR="#FFD0D0"
837CELLSPACING="0"
838CELLPADDING="4"
839CLASS="CALSTABLE"
840><TR
841><TD
842WIDTH="20%"
843ALIGN="RIGHT"
844VALIGN="TOP"
845><TT
846CLASS="PARAMETER"
847><I
848>cur</I
849></TT
850>&nbsp;:</TD
851><TD
852WIDTH="80%"
853ALIGN="LEFT"
854VALIGN="TOP"
Daniel Veillardb732a0e2000-10-15 11:27:01 +0000855> the document</TD
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000856></TR
857><TR
858><TD
859WIDTH="20%"
860ALIGN="RIGHT"
861VALIGN="TOP"
862><TT
863CLASS="PARAMETER"
864><I
865>mem</I
866></TT
867>&nbsp;:</TD
868><TD
869WIDTH="80%"
870ALIGN="LEFT"
871VALIGN="TOP"
Daniel Veillardb732a0e2000-10-15 11:27:01 +0000872> OUT: the memory pointer</TD
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000873></TR
874><TR
875><TD
876WIDTH="20%"
877ALIGN="RIGHT"
878VALIGN="TOP"
879><TT
880CLASS="PARAMETER"
881><I
882>size</I
883></TT
884>&nbsp;:</TD
885><TD
886WIDTH="80%"
887ALIGN="LEFT"
888VALIGN="TOP"
Daniel Veillardb732a0e2000-10-15 11:27:01 +0000889> OUT: the memory lenght</TD
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000890></TR
891></TABLE
892><P
893></P
894></DIV
895></DIV
896><HR><DIV
897CLASS="REFSECT2"
898><A
Daniel Veillard503b8932001-01-05 06:36:31 +0000899NAME="AEN10387"
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000900></A
901><H3
902><A
903NAME="HTMLDOCDUMP"
904></A
905>htmlDocDump ()</H3
906><TABLE
907BORDER="0"
908BGCOLOR="#D6E8FF"
909WIDTH="100%"
910CELLPADDING="6"
911><TR
912><TD
913><PRE
914CLASS="PROGRAMLISTING"
Daniel Veillarde46e20d2000-07-14 15:02:46 +0000915>int htmlDocDump (<GTKDOCLINK
Daniel Veillard503b8932001-01-05 06:36:31 +0000916HREF="FILE-CAPS"
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000917>FILE</GTKDOCLINK
918> *f,
919 <A
920HREF="gnome-xml-tree.html#XMLDOCPTR"
921>xmlDocPtr</A
922> cur);</PRE
923></TD
924></TR
925></TABLE
926><P
927>Dump an HTML document to an open FILE.</P
928><P
929></P
930><DIV
931CLASS="INFORMALTABLE"
932><P
933></P
934><TABLE
935BORDER="0"
936WIDTH="100%"
937BGCOLOR="#FFD0D0"
938CELLSPACING="0"
939CELLPADDING="4"
940CLASS="CALSTABLE"
941><TR
942><TD
943WIDTH="20%"
944ALIGN="RIGHT"
945VALIGN="TOP"
946><TT
947CLASS="PARAMETER"
948><I
949>f</I
950></TT
951>&nbsp;:</TD
952><TD
953WIDTH="80%"
954ALIGN="LEFT"
955VALIGN="TOP"
Daniel Veillardb732a0e2000-10-15 11:27:01 +0000956> the FILE*</TD
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000957></TR
958><TR
959><TD
960WIDTH="20%"
961ALIGN="RIGHT"
962VALIGN="TOP"
963><TT
964CLASS="PARAMETER"
965><I
966>cur</I
967></TT
968>&nbsp;:</TD
969><TD
970WIDTH="80%"
971ALIGN="LEFT"
972VALIGN="TOP"
Daniel Veillardb732a0e2000-10-15 11:27:01 +0000973> the document</TD
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000974></TR
Daniel Veillarde46e20d2000-07-14 15:02:46 +0000975><TR
976><TD
977WIDTH="20%"
978ALIGN="RIGHT"
979VALIGN="TOP"
980><I
981CLASS="EMPHASIS"
982>Returns</I
983> :</TD
984><TD
985WIDTH="80%"
986ALIGN="LEFT"
987VALIGN="TOP"
Daniel Veillardb732a0e2000-10-15 11:27:01 +0000988> the number of byte written or -1 in case of failure.</TD
Daniel Veillarde46e20d2000-07-14 15:02:46 +0000989></TR
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000990></TABLE
991><P
992></P
993></DIV
994></DIV
995><HR><DIV
996CLASS="REFSECT2"
997><A
Daniel Veillard503b8932001-01-05 06:36:31 +0000998NAME="AEN10412"
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000999></A
1000><H3
1001><A
1002NAME="HTMLSAVEFILE"
1003></A
1004>htmlSaveFile ()</H3
1005><TABLE
1006BORDER="0"
1007BGCOLOR="#D6E8FF"
1008WIDTH="100%"
1009CELLPADDING="6"
1010><TR
1011><TD
1012><PRE
1013CLASS="PROGRAMLISTING"
1014>int htmlSaveFile (const char *filename,
1015 <A
1016HREF="gnome-xml-tree.html#XMLDOCPTR"
1017>xmlDocPtr</A
1018> cur);</PRE
1019></TD
1020></TR
1021></TABLE
1022><P
Daniel Veillarde46e20d2000-07-14 15:02:46 +00001023>Dump an HTML document to a file. If <TT
1024CLASS="PARAMETER"
1025><I
1026>filename</I
1027></TT
1028> is "-" the stdout file is
1029used.</P
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001030><P
1031></P
1032><DIV
1033CLASS="INFORMALTABLE"
1034><P
1035></P
1036><TABLE
1037BORDER="0"
1038WIDTH="100%"
1039BGCOLOR="#FFD0D0"
1040CELLSPACING="0"
1041CELLPADDING="4"
1042CLASS="CALSTABLE"
1043><TR
1044><TD
1045WIDTH="20%"
1046ALIGN="RIGHT"
1047VALIGN="TOP"
1048><TT
1049CLASS="PARAMETER"
1050><I
1051>filename</I
1052></TT
1053>&nbsp;:</TD
1054><TD
1055WIDTH="80%"
1056ALIGN="LEFT"
1057VALIGN="TOP"
Daniel Veillardb732a0e2000-10-15 11:27:01 +00001058> the filename (or URL)</TD
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001059></TR
1060><TR
1061><TD
1062WIDTH="20%"
1063ALIGN="RIGHT"
1064VALIGN="TOP"
1065><TT
1066CLASS="PARAMETER"
1067><I
1068>cur</I
1069></TT
1070>&nbsp;:</TD
1071><TD
1072WIDTH="80%"
1073ALIGN="LEFT"
1074VALIGN="TOP"
Daniel Veillardb732a0e2000-10-15 11:27:01 +00001075> the document</TD
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001076></TR
1077><TR
1078><TD
1079WIDTH="20%"
1080ALIGN="RIGHT"
1081VALIGN="TOP"
1082><I
1083CLASS="EMPHASIS"
1084>Returns</I
1085> :</TD
1086><TD
1087WIDTH="80%"
1088ALIGN="LEFT"
1089VALIGN="TOP"
Daniel Veillardb732a0e2000-10-15 11:27:01 +00001090> the number of byte written or -1 in case of failure.</TD
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00001091></TR
1092></TABLE
1093><P
1094></P
1095></DIV
1096></DIV
1097><HR><DIV
1098CLASS="REFSECT2"
1099><A
Daniel Veillard503b8932001-01-05 06:36:31 +00001100NAME="AEN10437"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00001101></A
1102><H3
1103><A
1104NAME="HTMLNODEDUMP"
1105></A
1106>htmlNodeDump ()</H3
1107><TABLE
1108BORDER="0"
1109BGCOLOR="#D6E8FF"
1110WIDTH="100%"
1111CELLPADDING="6"
1112><TR
1113><TD
1114><PRE
1115CLASS="PROGRAMLISTING"
1116>void htmlNodeDump (<A
1117HREF="gnome-xml-tree.html#XMLBUFFERPTR"
1118>xmlBufferPtr</A
1119> buf,
1120 <A
1121HREF="gnome-xml-tree.html#XMLDOCPTR"
1122>xmlDocPtr</A
1123> doc,
1124 <A
1125HREF="gnome-xml-tree.html#XMLNODEPTR"
1126>xmlNodePtr</A
1127> cur);</PRE
1128></TD
1129></TR
1130></TABLE
1131><P
1132>Dump an HTML node, recursive behaviour,children are printed too.</P
1133><P
1134></P
1135><DIV
1136CLASS="INFORMALTABLE"
1137><P
1138></P
1139><TABLE
1140BORDER="0"
1141WIDTH="100%"
1142BGCOLOR="#FFD0D0"
1143CELLSPACING="0"
1144CELLPADDING="4"
1145CLASS="CALSTABLE"
1146><TR
1147><TD
1148WIDTH="20%"
1149ALIGN="RIGHT"
1150VALIGN="TOP"
1151><TT
1152CLASS="PARAMETER"
1153><I
1154>buf</I
1155></TT
1156>&nbsp;:</TD
1157><TD
1158WIDTH="80%"
1159ALIGN="LEFT"
1160VALIGN="TOP"
Daniel Veillardb732a0e2000-10-15 11:27:01 +00001161> the HTML buffer output</TD
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00001162></TR
1163><TR
1164><TD
1165WIDTH="20%"
1166ALIGN="RIGHT"
1167VALIGN="TOP"
1168><TT
1169CLASS="PARAMETER"
1170><I
1171>doc</I
1172></TT
1173>&nbsp;:</TD
1174><TD
1175WIDTH="80%"
1176ALIGN="LEFT"
1177VALIGN="TOP"
Daniel Veillardb732a0e2000-10-15 11:27:01 +00001178> the document</TD
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00001179></TR
1180><TR
1181><TD
1182WIDTH="20%"
1183ALIGN="RIGHT"
1184VALIGN="TOP"
1185><TT
1186CLASS="PARAMETER"
1187><I
1188>cur</I
1189></TT
1190>&nbsp;:</TD
1191><TD
1192WIDTH="80%"
1193ALIGN="LEFT"
1194VALIGN="TOP"
Daniel Veillardb732a0e2000-10-15 11:27:01 +00001195> the current node</TD
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00001196></TR
1197></TABLE
1198><P
1199></P
1200></DIV
1201></DIV
1202><HR><DIV
1203CLASS="REFSECT2"
1204><A
Daniel Veillard503b8932001-01-05 06:36:31 +00001205NAME="AEN10463"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00001206></A
1207><H3
1208><A
1209NAME="HTMLNODEDUMPFILE"
1210></A
1211>htmlNodeDumpFile ()</H3
1212><TABLE
1213BORDER="0"
1214BGCOLOR="#D6E8FF"
1215WIDTH="100%"
1216CELLPADDING="6"
1217><TR
1218><TD
1219><PRE
1220CLASS="PROGRAMLISTING"
1221>void htmlNodeDumpFile (<GTKDOCLINK
Daniel Veillard503b8932001-01-05 06:36:31 +00001222HREF="FILE-CAPS"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00001223>FILE</GTKDOCLINK
1224> *out,
1225 <A
1226HREF="gnome-xml-tree.html#XMLDOCPTR"
1227>xmlDocPtr</A
1228> doc,
1229 <A
1230HREF="gnome-xml-tree.html#XMLNODEPTR"
1231>xmlNodePtr</A
1232> cur);</PRE
1233></TD
1234></TR
1235></TABLE
1236><P
1237>Dump an HTML node, recursive behaviour,children are printed too.</P
1238><P
1239></P
1240><DIV
1241CLASS="INFORMALTABLE"
1242><P
1243></P
1244><TABLE
1245BORDER="0"
1246WIDTH="100%"
1247BGCOLOR="#FFD0D0"
1248CELLSPACING="0"
1249CELLPADDING="4"
1250CLASS="CALSTABLE"
1251><TR
1252><TD
1253WIDTH="20%"
1254ALIGN="RIGHT"
1255VALIGN="TOP"
1256><TT
1257CLASS="PARAMETER"
1258><I
1259>out</I
1260></TT
1261>&nbsp;:</TD
1262><TD
1263WIDTH="80%"
1264ALIGN="LEFT"
1265VALIGN="TOP"
Daniel Veillardb732a0e2000-10-15 11:27:01 +00001266> the FILE pointer</TD
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00001267></TR
1268><TR
1269><TD
1270WIDTH="20%"
1271ALIGN="RIGHT"
1272VALIGN="TOP"
1273><TT
1274CLASS="PARAMETER"
1275><I
1276>doc</I
1277></TT
1278>&nbsp;:</TD
1279><TD
1280WIDTH="80%"
1281ALIGN="LEFT"
1282VALIGN="TOP"
Daniel Veillardb732a0e2000-10-15 11:27:01 +00001283> the document</TD
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00001284></TR
1285><TR
1286><TD
1287WIDTH="20%"
1288ALIGN="RIGHT"
1289VALIGN="TOP"
1290><TT
1291CLASS="PARAMETER"
1292><I
1293>cur</I
1294></TT
1295>&nbsp;:</TD
1296><TD
1297WIDTH="80%"
1298ALIGN="LEFT"
1299VALIGN="TOP"
Daniel Veillardb732a0e2000-10-15 11:27:01 +00001300> the current node</TD
Daniel Veillard3bde3e22000-01-30 20:00:07 +00001301></TR
1302></TABLE
1303><P
1304></P
1305></DIV
1306></DIV
Daniel Veillarde46e20d2000-07-14 15:02:46 +00001307><HR><DIV
1308CLASS="REFSECT2"
1309><A
Daniel Veillard503b8932001-01-05 06:36:31 +00001310NAME="AEN10489"
Daniel Veillarde46e20d2000-07-14 15:02:46 +00001311></A
1312><H3
1313><A
1314NAME="HTMLSAVEFILEENC"
1315></A
1316>htmlSaveFileEnc ()</H3
1317><TABLE
1318BORDER="0"
1319BGCOLOR="#D6E8FF"
1320WIDTH="100%"
1321CELLPADDING="6"
1322><TR
1323><TD
1324><PRE
1325CLASS="PROGRAMLISTING"
1326>int htmlSaveFileEnc (const char *filename,
1327 <A
1328HREF="gnome-xml-tree.html#XMLDOCPTR"
1329>xmlDocPtr</A
1330> cur,
1331 const char *encoding);</PRE
1332></TD
1333></TR
1334></TABLE
1335><P
1336>Dump an HTML document to a file using a given encoding.</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>filename</I
1359></TT
1360>&nbsp;:</TD
1361><TD
1362WIDTH="80%"
1363ALIGN="LEFT"
1364VALIGN="TOP"
Daniel Veillardb732a0e2000-10-15 11:27:01 +00001365> the filename</TD
Daniel Veillarde46e20d2000-07-14 15:02:46 +00001366></TR
1367><TR
1368><TD
1369WIDTH="20%"
1370ALIGN="RIGHT"
1371VALIGN="TOP"
1372><TT
1373CLASS="PARAMETER"
1374><I
1375>cur</I
1376></TT
1377>&nbsp;:</TD
1378><TD
1379WIDTH="80%"
1380ALIGN="LEFT"
1381VALIGN="TOP"
Daniel Veillardb732a0e2000-10-15 11:27:01 +00001382> the document</TD
Daniel Veillarde46e20d2000-07-14 15:02:46 +00001383></TR
1384><TR
1385><TD
1386WIDTH="20%"
1387ALIGN="RIGHT"
1388VALIGN="TOP"
1389><TT
1390CLASS="PARAMETER"
1391><I
1392>encoding</I
1393></TT
1394>&nbsp;:</TD
1395><TD
1396WIDTH="80%"
1397ALIGN="LEFT"
1398VALIGN="TOP"
1399>&nbsp;</TD
1400></TR
1401><TR
1402><TD
1403WIDTH="20%"
1404ALIGN="RIGHT"
1405VALIGN="TOP"
1406><I
1407CLASS="EMPHASIS"
1408>Returns</I
1409> :</TD
1410><TD
1411WIDTH="80%"
1412ALIGN="LEFT"
1413VALIGN="TOP"
Daniel Veillardb732a0e2000-10-15 11:27:01 +00001414> the number of byte written or -1 in case of failure.</TD
Daniel Veillarde46e20d2000-07-14 15:02:46 +00001415></TR
1416></TABLE
1417><P
1418></P
1419></DIV
1420></DIV
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001421></DIV
1422><DIV
1423CLASS="NAVFOOTER"
Daniel Veillard00fdf371999-10-08 09:40:39 +00001424><BR
1425CLEAR="all"><BR><TABLE
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001426WIDTH="100%"
1427BORDER="0"
1428BGCOLOR="#000000"
1429CELLPADDING="1"
1430CELLSPACING="0"
1431><TR
1432><TD
1433WIDTH="25%"
1434BGCOLOR="#C00000"
1435ALIGN="left"
1436><A
1437HREF="gnome-xml-htmlparser.html"
1438><FONT
1439COLOR="#FFFFFF"
1440SIZE="3"
1441><B
1442>&#60;&#60;&#60; Previous Page</B
1443></FONT
1444></A
1445></TD
1446><TD
1447WIDTH="25%"
1448BGCOLOR="#0000C0"
1449ALIGN="center"
1450><FONT
1451COLOR="#FFFFFF"
1452SIZE="3"
1453><B
1454><A
1455HREF="book1.html"
1456><FONT
1457COLOR="#FFFFFF"
1458SIZE="3"
1459><B
1460>Home</B
1461></FONT
1462></A
1463></B
1464></FONT
1465></TD
1466><TD
1467WIDTH="25%"
1468BGCOLOR="#00C000"
1469ALIGN="center"
1470><FONT
1471COLOR="#FFFFFF"
1472SIZE="3"
1473><B
1474><A
Daniel Veillard35008381999-10-25 13:15:52 +00001475HREF="libxml-lib.html"
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001476><FONT
1477COLOR="#FFFFFF"
1478SIZE="3"
1479><B
1480>Up</B
1481></FONT
1482></A
1483></B
1484></FONT
1485></TD
1486><TD
1487WIDTH="25%"
1488BGCOLOR="#C00000"
1489ALIGN="right"
1490><A
1491HREF="gnome-xml-xpath.html"
1492><FONT
1493COLOR="#FFFFFF"
1494SIZE="3"
1495><B
1496>Next Page &#62;&#62;&#62;</B
1497></FONT
1498></A
1499></TD
1500></TR
1501><TR
1502><TD
1503COLSPAN="2"
1504ALIGN="left"
1505><FONT
1506COLOR="#FFFFFF"
1507SIZE="3"
1508><B
1509>HTMLparser</B
1510></FONT
1511></TD
1512><TD
1513COLSPAN="2"
1514ALIGN="right"
1515><FONT
1516COLOR="#FFFFFF"
1517SIZE="3"
1518><B
1519>xpath</B
1520></FONT
1521></TD
1522></TR
1523></TABLE
1524></DIV
1525></BODY
1526></HTML
1527>