blob: 4c78ecf3c34ba0634c6495eb1f5bc4479b085a44 [file] [log] [blame]
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001<HTML
2><HEAD
3><TITLE
4>HTMLtree</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"
15TITLE="HTMLparser"
16HREF="gnome-xml-htmlparser.html"><LINK
17REL="NEXT"
18TITLE="xpath"
19HREF="gnome-xml-xpath.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
47HREF="gnome-xml-htmlparser.html"
48><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-xpath.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>HTMLtree</H1
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000115><DIV
116CLASS="REFNAMEDIV"
117><A
Daniel Veillarda1fe9102000-11-25 10:49:25 +0000118NAME="AEN10264"
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000119></A
120><H2
121>Name</H2
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000122>HTMLtree &#8212; </DIV
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000123><DIV
124CLASS="REFSYNOPSISDIV"
125><A
Daniel Veillarda1fe9102000-11-25 10:49:25 +0000126NAME="AEN10267"
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
141#define <A
142HREF="gnome-xml-htmltree.html#HTML-TEXT-NODE"
143>HTML_TEXT_NODE</A
144>
145#define <A
146HREF="gnome-xml-htmltree.html#HTML-ENTITY-REF-NODE"
147>HTML_ENTITY_REF_NODE</A
148>
149#define <A
150HREF="gnome-xml-htmltree.html#HTML-COMMENT-NODE"
151>HTML_COMMENT_NODE</A
152>
Daniel Veillardb732a0e2000-10-15 11:27:01 +0000153#define <A
154HREF="gnome-xml-htmltree.html#HTML-PRESERVE-NODE"
155>HTML_PRESERVE_NODE</A
156>
Daniel Veillarde46e20d2000-07-14 15:02:46 +0000157<A
158HREF="gnome-xml-htmlparser.html#HTMLDOCPTR"
159>htmlDocPtr</A
160> <A
161HREF="gnome-xml-htmltree.html#HTMLNEWDOC"
162>htmlNewDoc</A
163> (const <A
164HREF="gnome-xml-tree.html#XMLCHAR"
165>xmlChar</A
166> *URI,
167 const <A
168HREF="gnome-xml-tree.html#XMLCHAR"
169>xmlChar</A
170> *ExternalID);
Daniel Veillard3bff2b02000-10-01 20:33:47 +0000171<A
172HREF="gnome-xml-htmlparser.html#HTMLDOCPTR"
173>htmlDocPtr</A
174> <A
175HREF="gnome-xml-htmltree.html#HTMLNEWDOCNODTD"
176>htmlNewDocNoDtD</A
177> (const <A
178HREF="gnome-xml-tree.html#XMLCHAR"
179>xmlChar</A
180> *URI,
181 const <A
182HREF="gnome-xml-tree.html#XMLCHAR"
183>xmlChar</A
184> *ExternalID);
Daniel Veillarde46e20d2000-07-14 15:02:46 +0000185const <A
186HREF="gnome-xml-tree.html#XMLCHAR"
187>xmlChar</A
188>* <A
189HREF="gnome-xml-htmltree.html#HTMLGETMETAENCODING"
190>htmlGetMetaEncoding</A
191> (<A
192HREF="gnome-xml-htmlparser.html#HTMLDOCPTR"
193>htmlDocPtr</A
194> doc);
195int <A
196HREF="gnome-xml-htmltree.html#HTMLSETMETAENCODING"
197>htmlSetMetaEncoding</A
198> (<A
199HREF="gnome-xml-htmlparser.html#HTMLDOCPTR"
200>htmlDocPtr</A
201> doc,
202 const <A
203HREF="gnome-xml-tree.html#XMLCHAR"
204>xmlChar</A
205> *encoding);
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000206void <A
207HREF="gnome-xml-htmltree.html#HTMLDOCDUMPMEMORY"
208>htmlDocDumpMemory</A
209> (<A
210HREF="gnome-xml-tree.html#XMLDOCPTR"
211>xmlDocPtr</A
212> cur,
213 <A
Daniel Veillarddd6b3671999-09-23 22:19:22 +0000214HREF="gnome-xml-tree.html#XMLCHAR"
215>xmlChar</A
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000216> **mem,
217 int *size);
Daniel Veillarde46e20d2000-07-14 15:02:46 +0000218int <A
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000219HREF="gnome-xml-htmltree.html#HTMLDOCDUMP"
220>htmlDocDump</A
221> (<GTKDOCLINK
222HREF="FILE"
223>FILE</GTKDOCLINK
224> *f,
225 <A
226HREF="gnome-xml-tree.html#XMLDOCPTR"
227>xmlDocPtr</A
228> cur);
229int <A
230HREF="gnome-xml-htmltree.html#HTMLSAVEFILE"
231>htmlSaveFile</A
232> (const char *filename,
233 <A
234HREF="gnome-xml-tree.html#XMLDOCPTR"
235>xmlDocPtr</A
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000236> cur);
237void <A
238HREF="gnome-xml-htmltree.html#HTMLNODEDUMP"
239>htmlNodeDump</A
240> (<A
241HREF="gnome-xml-tree.html#XMLBUFFERPTR"
242>xmlBufferPtr</A
243> buf,
244 <A
245HREF="gnome-xml-tree.html#XMLDOCPTR"
246>xmlDocPtr</A
247> doc,
248 <A
249HREF="gnome-xml-tree.html#XMLNODEPTR"
250>xmlNodePtr</A
251> cur);
252void <A
253HREF="gnome-xml-htmltree.html#HTMLNODEDUMPFILE"
254>htmlNodeDumpFile</A
255> (<GTKDOCLINK
256HREF="FILE"
257>FILE</GTKDOCLINK
258> *out,
259 <A
260HREF="gnome-xml-tree.html#XMLDOCPTR"
261>xmlDocPtr</A
262> doc,
263 <A
264HREF="gnome-xml-tree.html#XMLNODEPTR"
265>xmlNodePtr</A
Daniel Veillarde46e20d2000-07-14 15:02:46 +0000266> cur);
267int <A
268HREF="gnome-xml-htmltree.html#HTMLSAVEFILEENC"
269>htmlSaveFileEnc</A
270> (const char *filename,
271 <A
272HREF="gnome-xml-tree.html#XMLDOCPTR"
273>xmlDocPtr</A
274> cur,
275 const char *encoding);</PRE
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000276></TD
277></TR
278></TABLE
279></DIV
280><DIV
281CLASS="REFSECT1"
282><A
Daniel Veillarda1fe9102000-11-25 10:49:25 +0000283NAME="AEN10306"
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000284></A
285><H2
286>Description</H2
287><P
288></P
289></DIV
290><DIV
291CLASS="REFSECT1"
292><A
Daniel Veillarda1fe9102000-11-25 10:49:25 +0000293NAME="AEN10309"
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000294></A
295><H2
296>Details</H2
297><DIV
298CLASS="REFSECT2"
299><A
Daniel Veillarda1fe9102000-11-25 10:49:25 +0000300NAME="AEN10311"
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000301></A
302><H3
303><A
304NAME="HTML-TEXT-NODE"
305></A
306>HTML_TEXT_NODE</H3
307><TABLE
308BORDER="0"
309BGCOLOR="#D6E8FF"
310WIDTH="100%"
311CELLPADDING="6"
312><TR
313><TD
314><PRE
315CLASS="PROGRAMLISTING"
Daniel Veillardb732a0e2000-10-15 11:27:01 +0000316>#define HTML_TEXT_NODE XML_TEXT_NODE</PRE
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000317></TD
318></TR
319></TABLE
320><P
321></P
322></DIV
323><HR><DIV
324CLASS="REFSECT2"
325><A
Daniel Veillarda1fe9102000-11-25 10:49:25 +0000326NAME="AEN10316"
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000327></A
328><H3
329><A
330NAME="HTML-ENTITY-REF-NODE"
331></A
332>HTML_ENTITY_REF_NODE</H3
333><TABLE
334BORDER="0"
335BGCOLOR="#D6E8FF"
336WIDTH="100%"
337CELLPADDING="6"
338><TR
339><TD
340><PRE
341CLASS="PROGRAMLISTING"
Daniel Veillardb732a0e2000-10-15 11:27:01 +0000342>#define HTML_ENTITY_REF_NODE XML_ENTITY_REF_NODE</PRE
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000343></TD
344></TR
345></TABLE
346><P
347></P
348></DIV
349><HR><DIV
350CLASS="REFSECT2"
351><A
Daniel Veillarda1fe9102000-11-25 10:49:25 +0000352NAME="AEN10321"
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000353></A
354><H3
355><A
356NAME="HTML-COMMENT-NODE"
357></A
358>HTML_COMMENT_NODE</H3
359><TABLE
360BORDER="0"
361BGCOLOR="#D6E8FF"
362WIDTH="100%"
363CELLPADDING="6"
364><TR
365><TD
366><PRE
367CLASS="PROGRAMLISTING"
Daniel Veillardb732a0e2000-10-15 11:27:01 +0000368>#define HTML_COMMENT_NODE XML_COMMENT_NODE</PRE
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000369></TD
370></TR
371></TABLE
372><P
373></P
374></DIV
375><HR><DIV
376CLASS="REFSECT2"
377><A
Daniel Veillarda1fe9102000-11-25 10:49:25 +0000378NAME="AEN10326"
Daniel Veillardb732a0e2000-10-15 11:27:01 +0000379></A
380><H3
381><A
382NAME="HTML-PRESERVE-NODE"
383></A
384>HTML_PRESERVE_NODE</H3
385><TABLE
386BORDER="0"
387BGCOLOR="#D6E8FF"
388WIDTH="100%"
389CELLPADDING="6"
390><TR
391><TD
392><PRE
393CLASS="PROGRAMLISTING"
394>#define HTML_PRESERVE_NODE XML_CDATA_SECTION_NODE</PRE
395></TD
396></TR
397></TABLE
398><P
399></P
400></DIV
401><HR><DIV
402CLASS="REFSECT2"
403><A
Daniel Veillarda1fe9102000-11-25 10:49:25 +0000404NAME="AEN10331"
Daniel Veillarde46e20d2000-07-14 15:02:46 +0000405></A
406><H3
407><A
408NAME="HTMLNEWDOC"
409></A
410>htmlNewDoc ()</H3
411><TABLE
412BORDER="0"
413BGCOLOR="#D6E8FF"
414WIDTH="100%"
415CELLPADDING="6"
416><TR
417><TD
418><PRE
419CLASS="PROGRAMLISTING"
420><A
421HREF="gnome-xml-htmlparser.html#HTMLDOCPTR"
422>htmlDocPtr</A
423> htmlNewDoc (const <A
424HREF="gnome-xml-tree.html#XMLCHAR"
425>xmlChar</A
426> *URI,
427 const <A
428HREF="gnome-xml-tree.html#XMLCHAR"
429>xmlChar</A
430> *ExternalID);</PRE
431></TD
432></TR
433></TABLE
434><P
435></P
436><P
437></P
438><DIV
439CLASS="INFORMALTABLE"
440><P
441></P
442><TABLE
443BORDER="0"
444WIDTH="100%"
445BGCOLOR="#FFD0D0"
446CELLSPACING="0"
447CELLPADDING="4"
448CLASS="CALSTABLE"
449><TR
450><TD
451WIDTH="20%"
452ALIGN="RIGHT"
453VALIGN="TOP"
454><TT
455CLASS="PARAMETER"
456><I
457>URI</I
458></TT
459>&nbsp;:</TD
460><TD
461WIDTH="80%"
462ALIGN="LEFT"
463VALIGN="TOP"
Daniel Veillardb732a0e2000-10-15 11:27:01 +0000464> URI for the dtd, or NULL</TD
Daniel Veillarde46e20d2000-07-14 15:02:46 +0000465></TR
466><TR
467><TD
468WIDTH="20%"
469ALIGN="RIGHT"
470VALIGN="TOP"
471><TT
472CLASS="PARAMETER"
473><I
474>ExternalID</I
475></TT
476>&nbsp;:</TD
477><TD
478WIDTH="80%"
479ALIGN="LEFT"
480VALIGN="TOP"
Daniel Veillardb732a0e2000-10-15 11:27:01 +0000481> the external ID of the DTD, or NULL</TD
Daniel Veillarde46e20d2000-07-14 15:02:46 +0000482></TR
483><TR
484><TD
485WIDTH="20%"
486ALIGN="RIGHT"
487VALIGN="TOP"
488><I
489CLASS="EMPHASIS"
490>Returns</I
491> :</TD
492><TD
493WIDTH="80%"
494ALIGN="LEFT"
495VALIGN="TOP"
Daniel Veillardb732a0e2000-10-15 11:27:01 +0000496>a new document</TD
Daniel Veillarde46e20d2000-07-14 15:02:46 +0000497></TR
498></TABLE
499><P
500></P
501></DIV
502></DIV
503><HR><DIV
504CLASS="REFSECT2"
505><A
Daniel Veillarda1fe9102000-11-25 10:49:25 +0000506NAME="AEN10357"
Daniel Veillard3bff2b02000-10-01 20:33:47 +0000507></A
508><H3
509><A
510NAME="HTMLNEWDOCNODTD"
511></A
512>htmlNewDocNoDtD ()</H3
513><TABLE
514BORDER="0"
515BGCOLOR="#D6E8FF"
516WIDTH="100%"
517CELLPADDING="6"
518><TR
519><TD
520><PRE
521CLASS="PROGRAMLISTING"
522><A
523HREF="gnome-xml-htmlparser.html#HTMLDOCPTR"
524>htmlDocPtr</A
525> htmlNewDocNoDtD (const <A
526HREF="gnome-xml-tree.html#XMLCHAR"
527>xmlChar</A
528> *URI,
529 const <A
530HREF="gnome-xml-tree.html#XMLCHAR"
531>xmlChar</A
532> *ExternalID);</PRE
533></TD
534></TR
535></TABLE
536><P
537></P
538><P
539></P
540><DIV
541CLASS="INFORMALTABLE"
542><P
543></P
544><TABLE
545BORDER="0"
546WIDTH="100%"
547BGCOLOR="#FFD0D0"
548CELLSPACING="0"
549CELLPADDING="4"
550CLASS="CALSTABLE"
551><TR
552><TD
553WIDTH="20%"
554ALIGN="RIGHT"
555VALIGN="TOP"
556><TT
557CLASS="PARAMETER"
558><I
559>URI</I
560></TT
561>&nbsp;:</TD
562><TD
563WIDTH="80%"
564ALIGN="LEFT"
565VALIGN="TOP"
Daniel Veillardb732a0e2000-10-15 11:27:01 +0000566> URI for the dtd, or NULL</TD
Daniel Veillard3bff2b02000-10-01 20:33:47 +0000567></TR
568><TR
569><TD
570WIDTH="20%"
571ALIGN="RIGHT"
572VALIGN="TOP"
573><TT
574CLASS="PARAMETER"
575><I
576>ExternalID</I
577></TT
578>&nbsp;:</TD
579><TD
580WIDTH="80%"
581ALIGN="LEFT"
582VALIGN="TOP"
Daniel Veillardb732a0e2000-10-15 11:27:01 +0000583> the external ID of the DTD, or NULL</TD
Daniel Veillard3bff2b02000-10-01 20:33:47 +0000584></TR
585><TR
586><TD
587WIDTH="20%"
588ALIGN="RIGHT"
589VALIGN="TOP"
590><I
591CLASS="EMPHASIS"
592>Returns</I
593> :</TD
594><TD
595WIDTH="80%"
596ALIGN="LEFT"
597VALIGN="TOP"
Daniel Veillardb732a0e2000-10-15 11:27:01 +0000598>a new document, do not intialize the DTD if not provided</TD
Daniel Veillard3bff2b02000-10-01 20:33:47 +0000599></TR
600></TABLE
601><P
602></P
603></DIV
604></DIV
605><HR><DIV
606CLASS="REFSECT2"
607><A
Daniel Veillarda1fe9102000-11-25 10:49:25 +0000608NAME="AEN10383"
Daniel Veillarde46e20d2000-07-14 15:02:46 +0000609></A
610><H3
611><A
612NAME="HTMLGETMETAENCODING"
613></A
614>htmlGetMetaEncoding ()</H3
615><TABLE
616BORDER="0"
617BGCOLOR="#D6E8FF"
618WIDTH="100%"
619CELLPADDING="6"
620><TR
621><TD
622><PRE
623CLASS="PROGRAMLISTING"
624>const <A
625HREF="gnome-xml-tree.html#XMLCHAR"
626>xmlChar</A
627>* htmlGetMetaEncoding (<A
628HREF="gnome-xml-htmlparser.html#HTMLDOCPTR"
629>htmlDocPtr</A
630> doc);</PRE
631></TD
632></TR
633></TABLE
634><P
635>Encoding definition lookup in the Meta tags</P
636><P
637></P
638><DIV
639CLASS="INFORMALTABLE"
640><P
641></P
642><TABLE
643BORDER="0"
644WIDTH="100%"
645BGCOLOR="#FFD0D0"
646CELLSPACING="0"
647CELLPADDING="4"
648CLASS="CALSTABLE"
649><TR
650><TD
651WIDTH="20%"
652ALIGN="RIGHT"
653VALIGN="TOP"
654><TT
655CLASS="PARAMETER"
656><I
657>doc</I
658></TT
659>&nbsp;:</TD
660><TD
661WIDTH="80%"
662ALIGN="LEFT"
663VALIGN="TOP"
Daniel Veillardb732a0e2000-10-15 11:27:01 +0000664> the document</TD
Daniel Veillarde46e20d2000-07-14 15:02:46 +0000665></TR
666><TR
667><TD
668WIDTH="20%"
669ALIGN="RIGHT"
670VALIGN="TOP"
671><I
672CLASS="EMPHASIS"
673>Returns</I
674> :</TD
675><TD
676WIDTH="80%"
677ALIGN="LEFT"
678VALIGN="TOP"
Daniel Veillardb732a0e2000-10-15 11:27:01 +0000679>the current encoding as flagged in the HTML source</TD
Daniel Veillarde46e20d2000-07-14 15:02:46 +0000680></TR
681></TABLE
682><P
683></P
684></DIV
685></DIV
686><HR><DIV
687CLASS="REFSECT2"
688><A
Daniel Veillarda1fe9102000-11-25 10:49:25 +0000689NAME="AEN10404"
Daniel Veillarde46e20d2000-07-14 15:02:46 +0000690></A
691><H3
692><A
693NAME="HTMLSETMETAENCODING"
694></A
695>htmlSetMetaEncoding ()</H3
696><TABLE
697BORDER="0"
698BGCOLOR="#D6E8FF"
699WIDTH="100%"
700CELLPADDING="6"
701><TR
702><TD
703><PRE
704CLASS="PROGRAMLISTING"
705>int htmlSetMetaEncoding (<A
706HREF="gnome-xml-htmlparser.html#HTMLDOCPTR"
707>htmlDocPtr</A
708> doc,
709 const <A
710HREF="gnome-xml-tree.html#XMLCHAR"
711>xmlChar</A
712> *encoding);</PRE
713></TD
714></TR
715></TABLE
716><P
717>Sets the current encoding in the Meta tags
718NOTE: this will not change the document content encoding, just
719the META flag associated.</P
720><P
721></P
722><DIV
723CLASS="INFORMALTABLE"
724><P
725></P
726><TABLE
727BORDER="0"
728WIDTH="100%"
729BGCOLOR="#FFD0D0"
730CELLSPACING="0"
731CELLPADDING="4"
732CLASS="CALSTABLE"
733><TR
734><TD
735WIDTH="20%"
736ALIGN="RIGHT"
737VALIGN="TOP"
738><TT
739CLASS="PARAMETER"
740><I
741>doc</I
742></TT
743>&nbsp;:</TD
744><TD
745WIDTH="80%"
746ALIGN="LEFT"
747VALIGN="TOP"
Daniel Veillardb732a0e2000-10-15 11:27:01 +0000748> the document</TD
Daniel Veillarde46e20d2000-07-14 15:02:46 +0000749></TR
750><TR
751><TD
752WIDTH="20%"
753ALIGN="RIGHT"
754VALIGN="TOP"
755><TT
756CLASS="PARAMETER"
757><I
758>encoding</I
759></TT
760>&nbsp;:</TD
761><TD
762WIDTH="80%"
763ALIGN="LEFT"
764VALIGN="TOP"
Daniel Veillardb732a0e2000-10-15 11:27:01 +0000765> the encoding string</TD
Daniel Veillarde46e20d2000-07-14 15:02:46 +0000766></TR
767><TR
768><TD
769WIDTH="20%"
770ALIGN="RIGHT"
771VALIGN="TOP"
772><I
773CLASS="EMPHASIS"
774>Returns</I
775> :</TD
776><TD
777WIDTH="80%"
778ALIGN="LEFT"
779VALIGN="TOP"
Daniel Veillardb732a0e2000-10-15 11:27:01 +0000780>0 in case of success and -1 in case of error</TD
Daniel Veillarde46e20d2000-07-14 15:02:46 +0000781></TR
782></TABLE
783><P
784></P
785></DIV
786></DIV
787><HR><DIV
788CLASS="REFSECT2"
789><A
Daniel Veillarda1fe9102000-11-25 10:49:25 +0000790NAME="AEN10429"
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000791></A
792><H3
793><A
794NAME="HTMLDOCDUMPMEMORY"
795></A
796>htmlDocDumpMemory ()</H3
797><TABLE
798BORDER="0"
799BGCOLOR="#D6E8FF"
800WIDTH="100%"
801CELLPADDING="6"
802><TR
803><TD
804><PRE
805CLASS="PROGRAMLISTING"
806>void htmlDocDumpMemory (<A
807HREF="gnome-xml-tree.html#XMLDOCPTR"
808>xmlDocPtr</A
809> cur,
810 <A
Daniel Veillarddd6b3671999-09-23 22:19:22 +0000811HREF="gnome-xml-tree.html#XMLCHAR"
812>xmlChar</A
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000813> **mem,
814 int *size);</PRE
815></TD
816></TR
817></TABLE
818><P
Daniel Veillarddd6b3671999-09-23 22:19:22 +0000819>Dump an HTML document in memory and return the xmlChar * and it's size.
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000820It's up to the caller to free the memory.</P
821><P
822></P
823><DIV
824CLASS="INFORMALTABLE"
825><P
826></P
827><TABLE
828BORDER="0"
829WIDTH="100%"
830BGCOLOR="#FFD0D0"
831CELLSPACING="0"
832CELLPADDING="4"
833CLASS="CALSTABLE"
834><TR
835><TD
836WIDTH="20%"
837ALIGN="RIGHT"
838VALIGN="TOP"
839><TT
840CLASS="PARAMETER"
841><I
842>cur</I
843></TT
844>&nbsp;:</TD
845><TD
846WIDTH="80%"
847ALIGN="LEFT"
848VALIGN="TOP"
Daniel Veillardb732a0e2000-10-15 11:27:01 +0000849> the document</TD
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000850></TR
851><TR
852><TD
853WIDTH="20%"
854ALIGN="RIGHT"
855VALIGN="TOP"
856><TT
857CLASS="PARAMETER"
858><I
859>mem</I
860></TT
861>&nbsp;:</TD
862><TD
863WIDTH="80%"
864ALIGN="LEFT"
865VALIGN="TOP"
Daniel Veillardb732a0e2000-10-15 11:27:01 +0000866> OUT: the memory pointer</TD
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000867></TR
868><TR
869><TD
870WIDTH="20%"
871ALIGN="RIGHT"
872VALIGN="TOP"
873><TT
874CLASS="PARAMETER"
875><I
876>size</I
877></TT
878>&nbsp;:</TD
879><TD
880WIDTH="80%"
881ALIGN="LEFT"
882VALIGN="TOP"
Daniel Veillardb732a0e2000-10-15 11:27:01 +0000883> OUT: the memory lenght</TD
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000884></TR
885></TABLE
886><P
887></P
888></DIV
889></DIV
890><HR><DIV
891CLASS="REFSECT2"
892><A
Daniel Veillarda1fe9102000-11-25 10:49:25 +0000893NAME="AEN10454"
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000894></A
895><H3
896><A
897NAME="HTMLDOCDUMP"
898></A
899>htmlDocDump ()</H3
900><TABLE
901BORDER="0"
902BGCOLOR="#D6E8FF"
903WIDTH="100%"
904CELLPADDING="6"
905><TR
906><TD
907><PRE
908CLASS="PROGRAMLISTING"
Daniel Veillarde46e20d2000-07-14 15:02:46 +0000909>int htmlDocDump (<GTKDOCLINK
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000910HREF="FILE"
911>FILE</GTKDOCLINK
912> *f,
913 <A
914HREF="gnome-xml-tree.html#XMLDOCPTR"
915>xmlDocPtr</A
916> cur);</PRE
917></TD
918></TR
919></TABLE
920><P
921>Dump an HTML document to an open FILE.</P
922><P
923></P
924><DIV
925CLASS="INFORMALTABLE"
926><P
927></P
928><TABLE
929BORDER="0"
930WIDTH="100%"
931BGCOLOR="#FFD0D0"
932CELLSPACING="0"
933CELLPADDING="4"
934CLASS="CALSTABLE"
935><TR
936><TD
937WIDTH="20%"
938ALIGN="RIGHT"
939VALIGN="TOP"
940><TT
941CLASS="PARAMETER"
942><I
943>f</I
944></TT
945>&nbsp;:</TD
946><TD
947WIDTH="80%"
948ALIGN="LEFT"
949VALIGN="TOP"
Daniel Veillardb732a0e2000-10-15 11:27:01 +0000950> the FILE*</TD
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000951></TR
952><TR
953><TD
954WIDTH="20%"
955ALIGN="RIGHT"
956VALIGN="TOP"
957><TT
958CLASS="PARAMETER"
959><I
960>cur</I
961></TT
962>&nbsp;:</TD
963><TD
964WIDTH="80%"
965ALIGN="LEFT"
966VALIGN="TOP"
Daniel Veillardb732a0e2000-10-15 11:27:01 +0000967> the document</TD
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000968></TR
Daniel Veillarde46e20d2000-07-14 15:02:46 +0000969><TR
970><TD
971WIDTH="20%"
972ALIGN="RIGHT"
973VALIGN="TOP"
974><I
975CLASS="EMPHASIS"
976>Returns</I
977> :</TD
978><TD
979WIDTH="80%"
980ALIGN="LEFT"
981VALIGN="TOP"
Daniel Veillardb732a0e2000-10-15 11:27:01 +0000982> the number of byte written or -1 in case of failure.</TD
Daniel Veillarde46e20d2000-07-14 15:02:46 +0000983></TR
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000984></TABLE
985><P
986></P
987></DIV
988></DIV
989><HR><DIV
990CLASS="REFSECT2"
991><A
Daniel Veillarda1fe9102000-11-25 10:49:25 +0000992NAME="AEN10479"
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000993></A
994><H3
995><A
996NAME="HTMLSAVEFILE"
997></A
998>htmlSaveFile ()</H3
999><TABLE
1000BORDER="0"
1001BGCOLOR="#D6E8FF"
1002WIDTH="100%"
1003CELLPADDING="6"
1004><TR
1005><TD
1006><PRE
1007CLASS="PROGRAMLISTING"
1008>int htmlSaveFile (const char *filename,
1009 <A
1010HREF="gnome-xml-tree.html#XMLDOCPTR"
1011>xmlDocPtr</A
1012> cur);</PRE
1013></TD
1014></TR
1015></TABLE
1016><P
Daniel Veillarde46e20d2000-07-14 15:02:46 +00001017>Dump an HTML document to a file. If <TT
1018CLASS="PARAMETER"
1019><I
1020>filename</I
1021></TT
1022> is "-" the stdout file is
1023used.</P
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001024><P
1025></P
1026><DIV
1027CLASS="INFORMALTABLE"
1028><P
1029></P
1030><TABLE
1031BORDER="0"
1032WIDTH="100%"
1033BGCOLOR="#FFD0D0"
1034CELLSPACING="0"
1035CELLPADDING="4"
1036CLASS="CALSTABLE"
1037><TR
1038><TD
1039WIDTH="20%"
1040ALIGN="RIGHT"
1041VALIGN="TOP"
1042><TT
1043CLASS="PARAMETER"
1044><I
1045>filename</I
1046></TT
1047>&nbsp;:</TD
1048><TD
1049WIDTH="80%"
1050ALIGN="LEFT"
1051VALIGN="TOP"
Daniel Veillardb732a0e2000-10-15 11:27:01 +00001052> the filename (or URL)</TD
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001053></TR
1054><TR
1055><TD
1056WIDTH="20%"
1057ALIGN="RIGHT"
1058VALIGN="TOP"
1059><TT
1060CLASS="PARAMETER"
1061><I
1062>cur</I
1063></TT
1064>&nbsp;:</TD
1065><TD
1066WIDTH="80%"
1067ALIGN="LEFT"
1068VALIGN="TOP"
Daniel Veillardb732a0e2000-10-15 11:27:01 +00001069> the document</TD
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001070></TR
1071><TR
1072><TD
1073WIDTH="20%"
1074ALIGN="RIGHT"
1075VALIGN="TOP"
1076><I
1077CLASS="EMPHASIS"
1078>Returns</I
1079> :</TD
1080><TD
1081WIDTH="80%"
1082ALIGN="LEFT"
1083VALIGN="TOP"
Daniel Veillardb732a0e2000-10-15 11:27:01 +00001084> the number of byte written or -1 in case of failure.</TD
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00001085></TR
1086></TABLE
1087><P
1088></P
1089></DIV
1090></DIV
1091><HR><DIV
1092CLASS="REFSECT2"
1093><A
Daniel Veillarda1fe9102000-11-25 10:49:25 +00001094NAME="AEN10504"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00001095></A
1096><H3
1097><A
1098NAME="HTMLNODEDUMP"
1099></A
1100>htmlNodeDump ()</H3
1101><TABLE
1102BORDER="0"
1103BGCOLOR="#D6E8FF"
1104WIDTH="100%"
1105CELLPADDING="6"
1106><TR
1107><TD
1108><PRE
1109CLASS="PROGRAMLISTING"
1110>void htmlNodeDump (<A
1111HREF="gnome-xml-tree.html#XMLBUFFERPTR"
1112>xmlBufferPtr</A
1113> buf,
1114 <A
1115HREF="gnome-xml-tree.html#XMLDOCPTR"
1116>xmlDocPtr</A
1117> doc,
1118 <A
1119HREF="gnome-xml-tree.html#XMLNODEPTR"
1120>xmlNodePtr</A
1121> cur);</PRE
1122></TD
1123></TR
1124></TABLE
1125><P
1126>Dump an HTML node, recursive behaviour,children are printed too.</P
1127><P
1128></P
1129><DIV
1130CLASS="INFORMALTABLE"
1131><P
1132></P
1133><TABLE
1134BORDER="0"
1135WIDTH="100%"
1136BGCOLOR="#FFD0D0"
1137CELLSPACING="0"
1138CELLPADDING="4"
1139CLASS="CALSTABLE"
1140><TR
1141><TD
1142WIDTH="20%"
1143ALIGN="RIGHT"
1144VALIGN="TOP"
1145><TT
1146CLASS="PARAMETER"
1147><I
1148>buf</I
1149></TT
1150>&nbsp;:</TD
1151><TD
1152WIDTH="80%"
1153ALIGN="LEFT"
1154VALIGN="TOP"
Daniel Veillardb732a0e2000-10-15 11:27:01 +00001155> the HTML buffer output</TD
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00001156></TR
1157><TR
1158><TD
1159WIDTH="20%"
1160ALIGN="RIGHT"
1161VALIGN="TOP"
1162><TT
1163CLASS="PARAMETER"
1164><I
1165>doc</I
1166></TT
1167>&nbsp;:</TD
1168><TD
1169WIDTH="80%"
1170ALIGN="LEFT"
1171VALIGN="TOP"
Daniel Veillardb732a0e2000-10-15 11:27:01 +00001172> the document</TD
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00001173></TR
1174><TR
1175><TD
1176WIDTH="20%"
1177ALIGN="RIGHT"
1178VALIGN="TOP"
1179><TT
1180CLASS="PARAMETER"
1181><I
1182>cur</I
1183></TT
1184>&nbsp;:</TD
1185><TD
1186WIDTH="80%"
1187ALIGN="LEFT"
1188VALIGN="TOP"
Daniel Veillardb732a0e2000-10-15 11:27:01 +00001189> the current node</TD
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00001190></TR
1191></TABLE
1192><P
1193></P
1194></DIV
1195></DIV
1196><HR><DIV
1197CLASS="REFSECT2"
1198><A
Daniel Veillarda1fe9102000-11-25 10:49:25 +00001199NAME="AEN10530"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00001200></A
1201><H3
1202><A
1203NAME="HTMLNODEDUMPFILE"
1204></A
1205>htmlNodeDumpFile ()</H3
1206><TABLE
1207BORDER="0"
1208BGCOLOR="#D6E8FF"
1209WIDTH="100%"
1210CELLPADDING="6"
1211><TR
1212><TD
1213><PRE
1214CLASS="PROGRAMLISTING"
1215>void htmlNodeDumpFile (<GTKDOCLINK
1216HREF="FILE"
1217>FILE</GTKDOCLINK
1218> *out,
1219 <A
1220HREF="gnome-xml-tree.html#XMLDOCPTR"
1221>xmlDocPtr</A
1222> doc,
1223 <A
1224HREF="gnome-xml-tree.html#XMLNODEPTR"
1225>xmlNodePtr</A
1226> cur);</PRE
1227></TD
1228></TR
1229></TABLE
1230><P
1231>Dump an HTML node, recursive behaviour,children are printed too.</P
1232><P
1233></P
1234><DIV
1235CLASS="INFORMALTABLE"
1236><P
1237></P
1238><TABLE
1239BORDER="0"
1240WIDTH="100%"
1241BGCOLOR="#FFD0D0"
1242CELLSPACING="0"
1243CELLPADDING="4"
1244CLASS="CALSTABLE"
1245><TR
1246><TD
1247WIDTH="20%"
1248ALIGN="RIGHT"
1249VALIGN="TOP"
1250><TT
1251CLASS="PARAMETER"
1252><I
1253>out</I
1254></TT
1255>&nbsp;:</TD
1256><TD
1257WIDTH="80%"
1258ALIGN="LEFT"
1259VALIGN="TOP"
Daniel Veillardb732a0e2000-10-15 11:27:01 +00001260> the FILE pointer</TD
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00001261></TR
1262><TR
1263><TD
1264WIDTH="20%"
1265ALIGN="RIGHT"
1266VALIGN="TOP"
1267><TT
1268CLASS="PARAMETER"
1269><I
1270>doc</I
1271></TT
1272>&nbsp;:</TD
1273><TD
1274WIDTH="80%"
1275ALIGN="LEFT"
1276VALIGN="TOP"
Daniel Veillardb732a0e2000-10-15 11:27:01 +00001277> the document</TD
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00001278></TR
1279><TR
1280><TD
1281WIDTH="20%"
1282ALIGN="RIGHT"
1283VALIGN="TOP"
1284><TT
1285CLASS="PARAMETER"
1286><I
1287>cur</I
1288></TT
1289>&nbsp;:</TD
1290><TD
1291WIDTH="80%"
1292ALIGN="LEFT"
1293VALIGN="TOP"
Daniel Veillardb732a0e2000-10-15 11:27:01 +00001294> the current node</TD
Daniel Veillard3bde3e22000-01-30 20:00:07 +00001295></TR
1296></TABLE
1297><P
1298></P
1299></DIV
1300></DIV
Daniel Veillarde46e20d2000-07-14 15:02:46 +00001301><HR><DIV
1302CLASS="REFSECT2"
1303><A
Daniel Veillarda1fe9102000-11-25 10:49:25 +00001304NAME="AEN10556"
Daniel Veillarde46e20d2000-07-14 15:02:46 +00001305></A
1306><H3
1307><A
1308NAME="HTMLSAVEFILEENC"
1309></A
1310>htmlSaveFileEnc ()</H3
1311><TABLE
1312BORDER="0"
1313BGCOLOR="#D6E8FF"
1314WIDTH="100%"
1315CELLPADDING="6"
1316><TR
1317><TD
1318><PRE
1319CLASS="PROGRAMLISTING"
1320>int htmlSaveFileEnc (const char *filename,
1321 <A
1322HREF="gnome-xml-tree.html#XMLDOCPTR"
1323>xmlDocPtr</A
1324> cur,
1325 const char *encoding);</PRE
1326></TD
1327></TR
1328></TABLE
1329><P
1330>Dump an HTML document to a file using a given encoding.</P
1331><P
1332></P
1333><DIV
1334CLASS="INFORMALTABLE"
1335><P
1336></P
1337><TABLE
1338BORDER="0"
1339WIDTH="100%"
1340BGCOLOR="#FFD0D0"
1341CELLSPACING="0"
1342CELLPADDING="4"
1343CLASS="CALSTABLE"
1344><TR
1345><TD
1346WIDTH="20%"
1347ALIGN="RIGHT"
1348VALIGN="TOP"
1349><TT
1350CLASS="PARAMETER"
1351><I
1352>filename</I
1353></TT
1354>&nbsp;:</TD
1355><TD
1356WIDTH="80%"
1357ALIGN="LEFT"
1358VALIGN="TOP"
Daniel Veillardb732a0e2000-10-15 11:27:01 +00001359> the filename</TD
Daniel Veillarde46e20d2000-07-14 15:02:46 +00001360></TR
1361><TR
1362><TD
1363WIDTH="20%"
1364ALIGN="RIGHT"
1365VALIGN="TOP"
1366><TT
1367CLASS="PARAMETER"
1368><I
1369>cur</I
1370></TT
1371>&nbsp;:</TD
1372><TD
1373WIDTH="80%"
1374ALIGN="LEFT"
1375VALIGN="TOP"
Daniel Veillardb732a0e2000-10-15 11:27:01 +00001376> the document</TD
Daniel Veillarde46e20d2000-07-14 15:02:46 +00001377></TR
1378><TR
1379><TD
1380WIDTH="20%"
1381ALIGN="RIGHT"
1382VALIGN="TOP"
1383><TT
1384CLASS="PARAMETER"
1385><I
1386>encoding</I
1387></TT
1388>&nbsp;:</TD
1389><TD
1390WIDTH="80%"
1391ALIGN="LEFT"
1392VALIGN="TOP"
1393>&nbsp;</TD
1394></TR
1395><TR
1396><TD
1397WIDTH="20%"
1398ALIGN="RIGHT"
1399VALIGN="TOP"
1400><I
1401CLASS="EMPHASIS"
1402>Returns</I
1403> :</TD
1404><TD
1405WIDTH="80%"
1406ALIGN="LEFT"
1407VALIGN="TOP"
Daniel Veillardb732a0e2000-10-15 11:27:01 +00001408> the number of byte written or -1 in case of failure.</TD
Daniel Veillarde46e20d2000-07-14 15:02:46 +00001409></TR
1410></TABLE
1411><P
1412></P
1413></DIV
1414></DIV
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001415></DIV
1416><DIV
1417CLASS="NAVFOOTER"
Daniel Veillard00fdf371999-10-08 09:40:39 +00001418><BR
1419CLEAR="all"><BR><TABLE
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001420WIDTH="100%"
1421BORDER="0"
1422BGCOLOR="#000000"
1423CELLPADDING="1"
1424CELLSPACING="0"
1425><TR
1426><TD
1427WIDTH="25%"
1428BGCOLOR="#C00000"
1429ALIGN="left"
1430><A
1431HREF="gnome-xml-htmlparser.html"
1432><FONT
1433COLOR="#FFFFFF"
1434SIZE="3"
1435><B
1436>&#60;&#60;&#60; Previous Page</B
1437></FONT
1438></A
1439></TD
1440><TD
1441WIDTH="25%"
1442BGCOLOR="#0000C0"
1443ALIGN="center"
1444><FONT
1445COLOR="#FFFFFF"
1446SIZE="3"
1447><B
1448><A
1449HREF="book1.html"
1450><FONT
1451COLOR="#FFFFFF"
1452SIZE="3"
1453><B
1454>Home</B
1455></FONT
1456></A
1457></B
1458></FONT
1459></TD
1460><TD
1461WIDTH="25%"
1462BGCOLOR="#00C000"
1463ALIGN="center"
1464><FONT
1465COLOR="#FFFFFF"
1466SIZE="3"
1467><B
1468><A
Daniel Veillard35008381999-10-25 13:15:52 +00001469HREF="libxml-lib.html"
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001470><FONT
1471COLOR="#FFFFFF"
1472SIZE="3"
1473><B
1474>Up</B
1475></FONT
1476></A
1477></B
1478></FONT
1479></TD
1480><TD
1481WIDTH="25%"
1482BGCOLOR="#C00000"
1483ALIGN="right"
1484><A
1485HREF="gnome-xml-xpath.html"
1486><FONT
1487COLOR="#FFFFFF"
1488SIZE="3"
1489><B
1490>Next Page &#62;&#62;&#62;</B
1491></FONT
1492></A
1493></TD
1494></TR
1495><TR
1496><TD
1497COLSPAN="2"
1498ALIGN="left"
1499><FONT
1500COLOR="#FFFFFF"
1501SIZE="3"
1502><B
1503>HTMLparser</B
1504></FONT
1505></TD
1506><TD
1507COLSPAN="2"
1508ALIGN="right"
1509><FONT
1510COLOR="#FFFFFF"
1511SIZE="3"
1512><B
1513>xpath</B
1514></FONT
1515></TD
1516></TR
1517></TABLE
1518></DIV
1519></BODY
1520></HTML
1521>