blob: d43b815c2f4849215633c0a7d28f9b4ebebe4da7 [file] [log] [blame]
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001<HTML
2><HEAD
3><TITLE
4>HTMLtree</TITLE
5><META
6NAME="GENERATOR"
7CONTENT="Modular DocBook HTML Stylesheet Version 1.33"><LINK
8REL="HOME"
9TITLE="Gnome XML Library Reference Manual"
10HREF="book1.html"><LINK
11REL="UP"
12TITLE="Gnome XML Library"
13HREF="libxml.html"><LINK
14REL="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
85HREF="libxml.html"
86><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
114>HTMLtree</H1
115><DIV
116CLASS="REFNAMEDIV"
117><A
Daniel Veillarddd6b3671999-09-23 22:19:22 +0000118NAME="AEN6468"
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000119></A
120><H2
121>Name</H2
122>HTMLtree &#8212; </DIV
123><DIV
124CLASS="REFSYNOPSISDIV"
125><A
Daniel Veillarddd6b3671999-09-23 22:19:22 +0000126NAME="AEN6471"
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>
153void <A
154HREF="gnome-xml-htmltree.html#HTMLDOCDUMPMEMORY"
155>htmlDocDumpMemory</A
156> (<A
157HREF="gnome-xml-tree.html#XMLDOCPTR"
158>xmlDocPtr</A
159> cur,
160 <A
Daniel Veillarddd6b3671999-09-23 22:19:22 +0000161HREF="gnome-xml-tree.html#XMLCHAR"
162>xmlChar</A
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000163> **mem,
164 int *size);
165void <A
166HREF="gnome-xml-htmltree.html#HTMLDOCDUMP"
167>htmlDocDump</A
168> (<GTKDOCLINK
169HREF="FILE"
170>FILE</GTKDOCLINK
171> *f,
172 <A
173HREF="gnome-xml-tree.html#XMLDOCPTR"
174>xmlDocPtr</A
175> cur);
176int <A
177HREF="gnome-xml-htmltree.html#HTMLSAVEFILE"
178>htmlSaveFile</A
179> (const char *filename,
180 <A
181HREF="gnome-xml-tree.html#XMLDOCPTR"
182>xmlDocPtr</A
183> cur);</PRE
184></TD
185></TR
186></TABLE
187></DIV
188><DIV
189CLASS="REFSECT1"
190><A
Daniel Veillarddd6b3671999-09-23 22:19:22 +0000191NAME="AEN6485"
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000192></A
193><H2
194>Description</H2
195><P
196></P
197></DIV
198><DIV
199CLASS="REFSECT1"
200><A
Daniel Veillarddd6b3671999-09-23 22:19:22 +0000201NAME="AEN6488"
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000202></A
203><H2
204>Details</H2
205><DIV
206CLASS="REFSECT2"
207><A
Daniel Veillarddd6b3671999-09-23 22:19:22 +0000208NAME="AEN6490"
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000209></A
210><H3
211><A
212NAME="HTML-TEXT-NODE"
213></A
214>HTML_TEXT_NODE</H3
215><TABLE
216BORDER="0"
217BGCOLOR="#D6E8FF"
218WIDTH="100%"
219CELLPADDING="6"
220><TR
221><TD
222><PRE
223CLASS="PROGRAMLISTING"
Daniel Veillard7f7d1111999-09-22 09:46:25 +0000224>#define HTML_TEXT_NODE</PRE
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000225></TD
226></TR
227></TABLE
228><P
229></P
230></DIV
231><HR><DIV
232CLASS="REFSECT2"
233><A
Daniel Veillarddd6b3671999-09-23 22:19:22 +0000234NAME="AEN6495"
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000235></A
236><H3
237><A
238NAME="HTML-ENTITY-REF-NODE"
239></A
240>HTML_ENTITY_REF_NODE</H3
241><TABLE
242BORDER="0"
243BGCOLOR="#D6E8FF"
244WIDTH="100%"
245CELLPADDING="6"
246><TR
247><TD
248><PRE
249CLASS="PROGRAMLISTING"
Daniel Veillard7f7d1111999-09-22 09:46:25 +0000250>#define HTML_ENTITY_REF_NODE</PRE
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000251></TD
252></TR
253></TABLE
254><P
255></P
256></DIV
257><HR><DIV
258CLASS="REFSECT2"
259><A
Daniel Veillarddd6b3671999-09-23 22:19:22 +0000260NAME="AEN6500"
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000261></A
262><H3
263><A
264NAME="HTML-COMMENT-NODE"
265></A
266>HTML_COMMENT_NODE</H3
267><TABLE
268BORDER="0"
269BGCOLOR="#D6E8FF"
270WIDTH="100%"
271CELLPADDING="6"
272><TR
273><TD
274><PRE
275CLASS="PROGRAMLISTING"
Daniel Veillard7f7d1111999-09-22 09:46:25 +0000276>#define HTML_COMMENT_NODE</PRE
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000277></TD
278></TR
279></TABLE
280><P
281></P
282></DIV
283><HR><DIV
284CLASS="REFSECT2"
285><A
Daniel Veillarddd6b3671999-09-23 22:19:22 +0000286NAME="AEN6505"
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000287></A
288><H3
289><A
290NAME="HTMLDOCDUMPMEMORY"
291></A
292>htmlDocDumpMemory ()</H3
293><TABLE
294BORDER="0"
295BGCOLOR="#D6E8FF"
296WIDTH="100%"
297CELLPADDING="6"
298><TR
299><TD
300><PRE
301CLASS="PROGRAMLISTING"
302>void htmlDocDumpMemory (<A
303HREF="gnome-xml-tree.html#XMLDOCPTR"
304>xmlDocPtr</A
305> cur,
306 <A
Daniel Veillarddd6b3671999-09-23 22:19:22 +0000307HREF="gnome-xml-tree.html#XMLCHAR"
308>xmlChar</A
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000309> **mem,
310 int *size);</PRE
311></TD
312></TR
313></TABLE
314><P
Daniel Veillarddd6b3671999-09-23 22:19:22 +0000315>Dump an HTML document in memory and return the xmlChar * and it's size.
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000316It's up to the caller to free the memory.</P
317><P
318></P
319><DIV
320CLASS="INFORMALTABLE"
321><P
322></P
323><TABLE
324BORDER="0"
325WIDTH="100%"
326BGCOLOR="#FFD0D0"
327CELLSPACING="0"
328CELLPADDING="4"
329CLASS="CALSTABLE"
330><TR
331><TD
332WIDTH="20%"
333ALIGN="RIGHT"
334VALIGN="TOP"
335><TT
336CLASS="PARAMETER"
337><I
338>cur</I
339></TT
340>&nbsp;:</TD
341><TD
342WIDTH="80%"
343ALIGN="LEFT"
344VALIGN="TOP"
Daniel Veillard7f7d1111999-09-22 09:46:25 +0000345>&nbsp;</TD
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000346></TR
347><TR
348><TD
349WIDTH="20%"
350ALIGN="RIGHT"
351VALIGN="TOP"
352><TT
353CLASS="PARAMETER"
354><I
355>mem</I
356></TT
357>&nbsp;:</TD
358><TD
359WIDTH="80%"
360ALIGN="LEFT"
361VALIGN="TOP"
Daniel Veillard7f7d1111999-09-22 09:46:25 +0000362>&nbsp;</TD
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000363></TR
364><TR
365><TD
366WIDTH="20%"
367ALIGN="RIGHT"
368VALIGN="TOP"
369><TT
370CLASS="PARAMETER"
371><I
372>size</I
373></TT
374>&nbsp;:</TD
375><TD
376WIDTH="80%"
377ALIGN="LEFT"
378VALIGN="TOP"
Daniel Veillard7f7d1111999-09-22 09:46:25 +0000379>&nbsp;</TD
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000380></TR
381></TABLE
382><P
383></P
384></DIV
385></DIV
386><HR><DIV
387CLASS="REFSECT2"
388><A
Daniel Veillarddd6b3671999-09-23 22:19:22 +0000389NAME="AEN6530"
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000390></A
391><H3
392><A
393NAME="HTMLDOCDUMP"
394></A
395>htmlDocDump ()</H3
396><TABLE
397BORDER="0"
398BGCOLOR="#D6E8FF"
399WIDTH="100%"
400CELLPADDING="6"
401><TR
402><TD
403><PRE
404CLASS="PROGRAMLISTING"
405>void htmlDocDump (<GTKDOCLINK
406HREF="FILE"
407>FILE</GTKDOCLINK
408> *f,
409 <A
410HREF="gnome-xml-tree.html#XMLDOCPTR"
411>xmlDocPtr</A
412> cur);</PRE
413></TD
414></TR
415></TABLE
416><P
417>Dump an HTML document to an open FILE.</P
418><P
419></P
420><DIV
421CLASS="INFORMALTABLE"
422><P
423></P
424><TABLE
425BORDER="0"
426WIDTH="100%"
427BGCOLOR="#FFD0D0"
428CELLSPACING="0"
429CELLPADDING="4"
430CLASS="CALSTABLE"
431><TR
432><TD
433WIDTH="20%"
434ALIGN="RIGHT"
435VALIGN="TOP"
436><TT
437CLASS="PARAMETER"
438><I
439>f</I
440></TT
441>&nbsp;:</TD
442><TD
443WIDTH="80%"
444ALIGN="LEFT"
445VALIGN="TOP"
Daniel Veillard7f7d1111999-09-22 09:46:25 +0000446>&nbsp;</TD
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000447></TR
448><TR
449><TD
450WIDTH="20%"
451ALIGN="RIGHT"
452VALIGN="TOP"
453><TT
454CLASS="PARAMETER"
455><I
456>cur</I
457></TT
458>&nbsp;:</TD
459><TD
460WIDTH="80%"
461ALIGN="LEFT"
462VALIGN="TOP"
Daniel Veillard7f7d1111999-09-22 09:46:25 +0000463>&nbsp;</TD
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000464></TR
465></TABLE
466><P
467></P
468></DIV
469></DIV
470><HR><DIV
471CLASS="REFSECT2"
472><A
Daniel Veillarddd6b3671999-09-23 22:19:22 +0000473NAME="AEN6551"
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000474></A
475><H3
476><A
477NAME="HTMLSAVEFILE"
478></A
479>htmlSaveFile ()</H3
480><TABLE
481BORDER="0"
482BGCOLOR="#D6E8FF"
483WIDTH="100%"
484CELLPADDING="6"
485><TR
486><TD
487><PRE
488CLASS="PROGRAMLISTING"
489>int htmlSaveFile (const char *filename,
490 <A
491HREF="gnome-xml-tree.html#XMLDOCPTR"
492>xmlDocPtr</A
493> cur);</PRE
494></TD
495></TR
496></TABLE
497><P
498>Dump an HTML document to a file.</P
499><P
500></P
501><DIV
502CLASS="INFORMALTABLE"
503><P
504></P
505><TABLE
506BORDER="0"
507WIDTH="100%"
508BGCOLOR="#FFD0D0"
509CELLSPACING="0"
510CELLPADDING="4"
511CLASS="CALSTABLE"
512><TR
513><TD
514WIDTH="20%"
515ALIGN="RIGHT"
516VALIGN="TOP"
517><TT
518CLASS="PARAMETER"
519><I
520>filename</I
521></TT
522>&nbsp;:</TD
523><TD
524WIDTH="80%"
525ALIGN="LEFT"
526VALIGN="TOP"
Daniel Veillard7f7d1111999-09-22 09:46:25 +0000527>&nbsp;</TD
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000528></TR
529><TR
530><TD
531WIDTH="20%"
532ALIGN="RIGHT"
533VALIGN="TOP"
534><TT
535CLASS="PARAMETER"
536><I
537>cur</I
538></TT
539>&nbsp;:</TD
540><TD
541WIDTH="80%"
542ALIGN="LEFT"
543VALIGN="TOP"
Daniel Veillard7f7d1111999-09-22 09:46:25 +0000544>&nbsp;</TD
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000545></TR
546><TR
547><TD
548WIDTH="20%"
549ALIGN="RIGHT"
550VALIGN="TOP"
551><I
552CLASS="EMPHASIS"
553>Returns</I
554> :</TD
555><TD
556WIDTH="80%"
557ALIGN="LEFT"
558VALIGN="TOP"
Daniel Veillard7f7d1111999-09-22 09:46:25 +0000559>&nbsp;</TD
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000560></TR
561></TABLE
562><P
563></P
564></DIV
565></DIV
566></DIV
567><DIV
568CLASS="NAVFOOTER"
569><BR><BR><TABLE
570WIDTH="100%"
571BORDER="0"
572BGCOLOR="#000000"
573CELLPADDING="1"
574CELLSPACING="0"
575><TR
576><TD
577WIDTH="25%"
578BGCOLOR="#C00000"
579ALIGN="left"
580><A
581HREF="gnome-xml-htmlparser.html"
582><FONT
583COLOR="#FFFFFF"
584SIZE="3"
585><B
586>&#60;&#60;&#60; Previous Page</B
587></FONT
588></A
589></TD
590><TD
591WIDTH="25%"
592BGCOLOR="#0000C0"
593ALIGN="center"
594><FONT
595COLOR="#FFFFFF"
596SIZE="3"
597><B
598><A
599HREF="book1.html"
600><FONT
601COLOR="#FFFFFF"
602SIZE="3"
603><B
604>Home</B
605></FONT
606></A
607></B
608></FONT
609></TD
610><TD
611WIDTH="25%"
612BGCOLOR="#00C000"
613ALIGN="center"
614><FONT
615COLOR="#FFFFFF"
616SIZE="3"
617><B
618><A
619HREF="libxml.html"
620><FONT
621COLOR="#FFFFFF"
622SIZE="3"
623><B
624>Up</B
625></FONT
626></A
627></B
628></FONT
629></TD
630><TD
631WIDTH="25%"
632BGCOLOR="#C00000"
633ALIGN="right"
634><A
635HREF="gnome-xml-xpath.html"
636><FONT
637COLOR="#FFFFFF"
638SIZE="3"
639><B
640>Next Page &#62;&#62;&#62;</B
641></FONT
642></A
643></TD
644></TR
645><TR
646><TD
647COLSPAN="2"
648ALIGN="left"
649><FONT
650COLOR="#FFFFFF"
651SIZE="3"
652><B
653>HTMLparser</B
654></FONT
655></TD
656><TD
657COLSPAN="2"
658ALIGN="right"
659><FONT
660COLOR="#FFFFFF"
661SIZE="3"
662><B
663>xpath</B
664></FONT
665></TD
666></TR
667></TABLE
668></DIV
669></BODY
670></HTML
671>