| <HTML |
| ><HEAD |
| ><TITLE |
| >HTMLtree</TITLE |
| ><META |
| NAME="GENERATOR" |
| CONTENT="Modular DocBook HTML Stylesheet Version 1.33"><LINK |
| REL="HOME" |
| TITLE="Gnome XML Library Reference Manual" |
| HREF="book1.html"><LINK |
| REL="UP" |
| TITLE="Libxml Library Reference" |
| HREF="libxml-lib.html"><LINK |
| REL="PREVIOUS" |
| TITLE="HTMLparser" |
| HREF="gnome-xml-htmlparser.html"><LINK |
| REL="NEXT" |
| TITLE="xpath" |
| HREF="gnome-xml-xpath.html"></HEAD |
| ><BODY |
| BGCOLOR="#FFFFFF" |
| TEXT="#000000" |
| ><DIV |
| CLASS="NAVHEADER" |
| ><TABLE |
| WIDTH="100%" |
| BORDER="0" |
| BGCOLOR="#000000" |
| CELLPADDING="1" |
| CELLSPACING="0" |
| ><TR |
| ><TH |
| COLSPAN="4" |
| ALIGN="center" |
| ><FONT |
| COLOR="#FFFFFF" |
| SIZE="5" |
| >Gnome XML Library Reference Manual</FONT |
| ></TH |
| ></TR |
| ><TR |
| ><TD |
| WIDTH="25%" |
| BGCOLOR="#C00000" |
| ALIGN="left" |
| ><A |
| HREF="gnome-xml-htmlparser.html" |
| ><FONT |
| COLOR="#FFFFFF" |
| SIZE="3" |
| ><B |
| ><<< Previous Page</B |
| ></FONT |
| ></A |
| ></TD |
| ><TD |
| WIDTH="25%" |
| BGCOLOR="#0000C0" |
| ALIGN="center" |
| ><FONT |
| COLOR="#FFFFFF" |
| SIZE="3" |
| ><B |
| ><A |
| HREF="book1.html" |
| ><FONT |
| COLOR="#FFFFFF" |
| SIZE="3" |
| ><B |
| >Home</B |
| ></FONT |
| ></A |
| ></B |
| ></FONT |
| ></TD |
| ><TD |
| WIDTH="25%" |
| BGCOLOR="#00C000" |
| ALIGN="center" |
| ><FONT |
| COLOR="#FFFFFF" |
| SIZE="3" |
| ><B |
| ><A |
| HREF="libxml-lib.html" |
| ><FONT |
| COLOR="#FFFFFF" |
| SIZE="3" |
| ><B |
| >Up</B |
| ></FONT |
| ></A |
| ></B |
| ></FONT |
| ></TD |
| ><TD |
| WIDTH="25%" |
| BGCOLOR="#C00000" |
| ALIGN="right" |
| ><A |
| HREF="gnome-xml-xpath.html" |
| ><FONT |
| COLOR="#FFFFFF" |
| SIZE="3" |
| ><B |
| >Next Page >>></B |
| ></FONT |
| ></A |
| ></TD |
| ></TR |
| ></TABLE |
| ></DIV |
| ><H1 |
| >HTMLtree</H1 |
| ><DIV |
| CLASS="REFNAMEDIV" |
| ><A |
| NAME="AEN10150" |
| ></A |
| ><H2 |
| >Name</H2 |
| >HTMLtree — </DIV |
| ><DIV |
| CLASS="REFSYNOPSISDIV" |
| ><A |
| NAME="AEN10153" |
| ></A |
| ><H2 |
| >Synopsis</H2 |
| ><TABLE |
| BORDER="0" |
| BGCOLOR="#D6E8FF" |
| WIDTH="100%" |
| CELLPADDING="6" |
| ><TR |
| ><TD |
| ><PRE |
| CLASS="SYNOPSIS" |
| > |
| |
| #define <A |
| HREF="gnome-xml-htmltree.html#HTML-TEXT-NODE" |
| >HTML_TEXT_NODE</A |
| > |
| #define <A |
| HREF="gnome-xml-htmltree.html#HTML-ENTITY-REF-NODE" |
| >HTML_ENTITY_REF_NODE</A |
| > |
| #define <A |
| HREF="gnome-xml-htmltree.html#HTML-COMMENT-NODE" |
| >HTML_COMMENT_NODE</A |
| > |
| <A |
| HREF="gnome-xml-htmlparser.html#HTMLDOCPTR" |
| >htmlDocPtr</A |
| > <A |
| HREF="gnome-xml-htmltree.html#HTMLNEWDOC" |
| >htmlNewDoc</A |
| > (const <A |
| HREF="gnome-xml-tree.html#XMLCHAR" |
| >xmlChar</A |
| > *URI, |
| const <A |
| HREF="gnome-xml-tree.html#XMLCHAR" |
| >xmlChar</A |
| > *ExternalID); |
| <A |
| HREF="gnome-xml-htmlparser.html#HTMLDOCPTR" |
| >htmlDocPtr</A |
| > <A |
| HREF="gnome-xml-htmltree.html#HTMLNEWDOCNODTD" |
| >htmlNewDocNoDtD</A |
| > (const <A |
| HREF="gnome-xml-tree.html#XMLCHAR" |
| >xmlChar</A |
| > *URI, |
| const <A |
| HREF="gnome-xml-tree.html#XMLCHAR" |
| >xmlChar</A |
| > *ExternalID); |
| const <A |
| HREF="gnome-xml-tree.html#XMLCHAR" |
| >xmlChar</A |
| >* <A |
| HREF="gnome-xml-htmltree.html#HTMLGETMETAENCODING" |
| >htmlGetMetaEncoding</A |
| > (<A |
| HREF="gnome-xml-htmlparser.html#HTMLDOCPTR" |
| >htmlDocPtr</A |
| > doc); |
| int <A |
| HREF="gnome-xml-htmltree.html#HTMLSETMETAENCODING" |
| >htmlSetMetaEncoding</A |
| > (<A |
| HREF="gnome-xml-htmlparser.html#HTMLDOCPTR" |
| >htmlDocPtr</A |
| > doc, |
| const <A |
| HREF="gnome-xml-tree.html#XMLCHAR" |
| >xmlChar</A |
| > *encoding); |
| void <A |
| HREF="gnome-xml-htmltree.html#HTMLDOCDUMPMEMORY" |
| >htmlDocDumpMemory</A |
| > (<A |
| HREF="gnome-xml-tree.html#XMLDOCPTR" |
| >xmlDocPtr</A |
| > cur, |
| <A |
| HREF="gnome-xml-tree.html#XMLCHAR" |
| >xmlChar</A |
| > **mem, |
| int *size); |
| int <A |
| HREF="gnome-xml-htmltree.html#HTMLDOCDUMP" |
| >htmlDocDump</A |
| > (<GTKDOCLINK |
| HREF="FILE" |
| >FILE</GTKDOCLINK |
| > *f, |
| <A |
| HREF="gnome-xml-tree.html#XMLDOCPTR" |
| >xmlDocPtr</A |
| > cur); |
| int <A |
| HREF="gnome-xml-htmltree.html#HTMLSAVEFILE" |
| >htmlSaveFile</A |
| > (const char *filename, |
| <A |
| HREF="gnome-xml-tree.html#XMLDOCPTR" |
| >xmlDocPtr</A |
| > cur); |
| void <A |
| HREF="gnome-xml-htmltree.html#HTMLNODEDUMP" |
| >htmlNodeDump</A |
| > (<A |
| HREF="gnome-xml-tree.html#XMLBUFFERPTR" |
| >xmlBufferPtr</A |
| > buf, |
| <A |
| HREF="gnome-xml-tree.html#XMLDOCPTR" |
| >xmlDocPtr</A |
| > doc, |
| <A |
| HREF="gnome-xml-tree.html#XMLNODEPTR" |
| >xmlNodePtr</A |
| > cur); |
| void <A |
| HREF="gnome-xml-htmltree.html#HTMLNODEDUMPFILE" |
| >htmlNodeDumpFile</A |
| > (<GTKDOCLINK |
| HREF="FILE" |
| >FILE</GTKDOCLINK |
| > *out, |
| <A |
| HREF="gnome-xml-tree.html#XMLDOCPTR" |
| >xmlDocPtr</A |
| > doc, |
| <A |
| HREF="gnome-xml-tree.html#XMLNODEPTR" |
| >xmlNodePtr</A |
| > cur); |
| int <A |
| HREF="gnome-xml-htmltree.html#HTMLSAVEFILEENC" |
| >htmlSaveFileEnc</A |
| > (const char *filename, |
| <A |
| HREF="gnome-xml-tree.html#XMLDOCPTR" |
| >xmlDocPtr</A |
| > cur, |
| const char *encoding);</PRE |
| ></TD |
| ></TR |
| ></TABLE |
| ></DIV |
| ><DIV |
| CLASS="REFSECT1" |
| ><A |
| NAME="AEN10191" |
| ></A |
| ><H2 |
| >Description</H2 |
| ><P |
| ></P |
| ></DIV |
| ><DIV |
| CLASS="REFSECT1" |
| ><A |
| NAME="AEN10194" |
| ></A |
| ><H2 |
| >Details</H2 |
| ><DIV |
| CLASS="REFSECT2" |
| ><A |
| NAME="AEN10196" |
| ></A |
| ><H3 |
| ><A |
| NAME="HTML-TEXT-NODE" |
| ></A |
| >HTML_TEXT_NODE</H3 |
| ><TABLE |
| BORDER="0" |
| BGCOLOR="#D6E8FF" |
| WIDTH="100%" |
| CELLPADDING="6" |
| ><TR |
| ><TD |
| ><PRE |
| CLASS="PROGRAMLISTING" |
| >#define HTML_TEXT_NODE XML_TEXT_NODE</PRE |
| ></TD |
| ></TR |
| ></TABLE |
| ><P |
| ></P |
| ></DIV |
| ><HR><DIV |
| CLASS="REFSECT2" |
| ><A |
| NAME="AEN10201" |
| ></A |
| ><H3 |
| ><A |
| NAME="HTML-ENTITY-REF-NODE" |
| ></A |
| >HTML_ENTITY_REF_NODE</H3 |
| ><TABLE |
| BORDER="0" |
| BGCOLOR="#D6E8FF" |
| WIDTH="100%" |
| CELLPADDING="6" |
| ><TR |
| ><TD |
| ><PRE |
| CLASS="PROGRAMLISTING" |
| >#define HTML_ENTITY_REF_NODE XML_ENTITY_REF_NODE</PRE |
| ></TD |
| ></TR |
| ></TABLE |
| ><P |
| ></P |
| ></DIV |
| ><HR><DIV |
| CLASS="REFSECT2" |
| ><A |
| NAME="AEN10206" |
| ></A |
| ><H3 |
| ><A |
| NAME="HTML-COMMENT-NODE" |
| ></A |
| >HTML_COMMENT_NODE</H3 |
| ><TABLE |
| BORDER="0" |
| BGCOLOR="#D6E8FF" |
| WIDTH="100%" |
| CELLPADDING="6" |
| ><TR |
| ><TD |
| ><PRE |
| CLASS="PROGRAMLISTING" |
| >#define HTML_COMMENT_NODE XML_COMMENT_NODE</PRE |
| ></TD |
| ></TR |
| ></TABLE |
| ><P |
| ></P |
| ></DIV |
| ><HR><DIV |
| CLASS="REFSECT2" |
| ><A |
| NAME="AEN10211" |
| ></A |
| ><H3 |
| ><A |
| NAME="HTMLNEWDOC" |
| ></A |
| >htmlNewDoc ()</H3 |
| ><TABLE |
| BORDER="0" |
| BGCOLOR="#D6E8FF" |
| WIDTH="100%" |
| CELLPADDING="6" |
| ><TR |
| ><TD |
| ><PRE |
| CLASS="PROGRAMLISTING" |
| ><A |
| HREF="gnome-xml-htmlparser.html#HTMLDOCPTR" |
| >htmlDocPtr</A |
| > htmlNewDoc (const <A |
| HREF="gnome-xml-tree.html#XMLCHAR" |
| >xmlChar</A |
| > *URI, |
| const <A |
| HREF="gnome-xml-tree.html#XMLCHAR" |
| >xmlChar</A |
| > *ExternalID);</PRE |
| ></TD |
| ></TR |
| ></TABLE |
| ><P |
| ></P |
| ><P |
| ></P |
| ><DIV |
| CLASS="INFORMALTABLE" |
| ><P |
| ></P |
| ><TABLE |
| BORDER="0" |
| WIDTH="100%" |
| BGCOLOR="#FFD0D0" |
| CELLSPACING="0" |
| CELLPADDING="4" |
| CLASS="CALSTABLE" |
| ><TR |
| ><TD |
| WIDTH="20%" |
| ALIGN="RIGHT" |
| VALIGN="TOP" |
| ><TT |
| CLASS="PARAMETER" |
| ><I |
| >URI</I |
| ></TT |
| > :</TD |
| ><TD |
| WIDTH="80%" |
| ALIGN="LEFT" |
| VALIGN="TOP" |
| > URI for the dtd, or NULL</TD |
| ></TR |
| ><TR |
| ><TD |
| WIDTH="20%" |
| ALIGN="RIGHT" |
| VALIGN="TOP" |
| ><TT |
| CLASS="PARAMETER" |
| ><I |
| >ExternalID</I |
| ></TT |
| > :</TD |
| ><TD |
| WIDTH="80%" |
| ALIGN="LEFT" |
| VALIGN="TOP" |
| > the external ID of the DTD, or NULL</TD |
| ></TR |
| ><TR |
| ><TD |
| WIDTH="20%" |
| ALIGN="RIGHT" |
| VALIGN="TOP" |
| ><I |
| CLASS="EMPHASIS" |
| >Returns</I |
| > :</TD |
| ><TD |
| WIDTH="80%" |
| ALIGN="LEFT" |
| VALIGN="TOP" |
| >a new document</TD |
| ></TR |
| ></TABLE |
| ><P |
| ></P |
| ></DIV |
| ></DIV |
| ><HR><DIV |
| CLASS="REFSECT2" |
| ><A |
| NAME="AEN10237" |
| ></A |
| ><H3 |
| ><A |
| NAME="HTMLNEWDOCNODTD" |
| ></A |
| >htmlNewDocNoDtD ()</H3 |
| ><TABLE |
| BORDER="0" |
| BGCOLOR="#D6E8FF" |
| WIDTH="100%" |
| CELLPADDING="6" |
| ><TR |
| ><TD |
| ><PRE |
| CLASS="PROGRAMLISTING" |
| ><A |
| HREF="gnome-xml-htmlparser.html#HTMLDOCPTR" |
| >htmlDocPtr</A |
| > htmlNewDocNoDtD (const <A |
| HREF="gnome-xml-tree.html#XMLCHAR" |
| >xmlChar</A |
| > *URI, |
| const <A |
| HREF="gnome-xml-tree.html#XMLCHAR" |
| >xmlChar</A |
| > *ExternalID);</PRE |
| ></TD |
| ></TR |
| ></TABLE |
| ><P |
| ></P |
| ><P |
| ></P |
| ><DIV |
| CLASS="INFORMALTABLE" |
| ><P |
| ></P |
| ><TABLE |
| BORDER="0" |
| WIDTH="100%" |
| BGCOLOR="#FFD0D0" |
| CELLSPACING="0" |
| CELLPADDING="4" |
| CLASS="CALSTABLE" |
| ><TR |
| ><TD |
| WIDTH="20%" |
| ALIGN="RIGHT" |
| VALIGN="TOP" |
| ><TT |
| CLASS="PARAMETER" |
| ><I |
| >URI</I |
| ></TT |
| > :</TD |
| ><TD |
| WIDTH="80%" |
| ALIGN="LEFT" |
| VALIGN="TOP" |
| > URI for the dtd, or NULL</TD |
| ></TR |
| ><TR |
| ><TD |
| WIDTH="20%" |
| ALIGN="RIGHT" |
| VALIGN="TOP" |
| ><TT |
| CLASS="PARAMETER" |
| ><I |
| >ExternalID</I |
| ></TT |
| > :</TD |
| ><TD |
| WIDTH="80%" |
| ALIGN="LEFT" |
| VALIGN="TOP" |
| > the external ID of the DTD, or NULL</TD |
| ></TR |
| ><TR |
| ><TD |
| WIDTH="20%" |
| ALIGN="RIGHT" |
| VALIGN="TOP" |
| ><I |
| CLASS="EMPHASIS" |
| >Returns</I |
| > :</TD |
| ><TD |
| WIDTH="80%" |
| ALIGN="LEFT" |
| VALIGN="TOP" |
| >a new document, do not intialize the DTD if not provided</TD |
| ></TR |
| ></TABLE |
| ><P |
| ></P |
| ></DIV |
| ></DIV |
| ><HR><DIV |
| CLASS="REFSECT2" |
| ><A |
| NAME="AEN10263" |
| ></A |
| ><H3 |
| ><A |
| NAME="HTMLGETMETAENCODING" |
| ></A |
| >htmlGetMetaEncoding ()</H3 |
| ><TABLE |
| BORDER="0" |
| BGCOLOR="#D6E8FF" |
| WIDTH="100%" |
| CELLPADDING="6" |
| ><TR |
| ><TD |
| ><PRE |
| CLASS="PROGRAMLISTING" |
| >const <A |
| HREF="gnome-xml-tree.html#XMLCHAR" |
| >xmlChar</A |
| >* htmlGetMetaEncoding (<A |
| HREF="gnome-xml-htmlparser.html#HTMLDOCPTR" |
| >htmlDocPtr</A |
| > doc);</PRE |
| ></TD |
| ></TR |
| ></TABLE |
| ><P |
| >Encoding definition lookup in the Meta tags</P |
| ><P |
| ></P |
| ><DIV |
| CLASS="INFORMALTABLE" |
| ><P |
| ></P |
| ><TABLE |
| BORDER="0" |
| WIDTH="100%" |
| BGCOLOR="#FFD0D0" |
| CELLSPACING="0" |
| CELLPADDING="4" |
| CLASS="CALSTABLE" |
| ><TR |
| ><TD |
| WIDTH="20%" |
| ALIGN="RIGHT" |
| VALIGN="TOP" |
| ><TT |
| CLASS="PARAMETER" |
| ><I |
| >doc</I |
| ></TT |
| > :</TD |
| ><TD |
| WIDTH="80%" |
| ALIGN="LEFT" |
| VALIGN="TOP" |
| > the document</TD |
| ></TR |
| ><TR |
| ><TD |
| WIDTH="20%" |
| ALIGN="RIGHT" |
| VALIGN="TOP" |
| ><I |
| CLASS="EMPHASIS" |
| >Returns</I |
| > :</TD |
| ><TD |
| WIDTH="80%" |
| ALIGN="LEFT" |
| VALIGN="TOP" |
| >the current encoding as flagged in the HTML source</TD |
| ></TR |
| ></TABLE |
| ><P |
| ></P |
| ></DIV |
| ></DIV |
| ><HR><DIV |
| CLASS="REFSECT2" |
| ><A |
| NAME="AEN10284" |
| ></A |
| ><H3 |
| ><A |
| NAME="HTMLSETMETAENCODING" |
| ></A |
| >htmlSetMetaEncoding ()</H3 |
| ><TABLE |
| BORDER="0" |
| BGCOLOR="#D6E8FF" |
| WIDTH="100%" |
| CELLPADDING="6" |
| ><TR |
| ><TD |
| ><PRE |
| CLASS="PROGRAMLISTING" |
| >int htmlSetMetaEncoding (<A |
| HREF="gnome-xml-htmlparser.html#HTMLDOCPTR" |
| >htmlDocPtr</A |
| > doc, |
| const <A |
| HREF="gnome-xml-tree.html#XMLCHAR" |
| >xmlChar</A |
| > *encoding);</PRE |
| ></TD |
| ></TR |
| ></TABLE |
| ><P |
| >Sets the current encoding in the Meta tags |
| NOTE: this will not change the document content encoding, just |
| the META flag associated.</P |
| ><P |
| ></P |
| ><DIV |
| CLASS="INFORMALTABLE" |
| ><P |
| ></P |
| ><TABLE |
| BORDER="0" |
| WIDTH="100%" |
| BGCOLOR="#FFD0D0" |
| CELLSPACING="0" |
| CELLPADDING="4" |
| CLASS="CALSTABLE" |
| ><TR |
| ><TD |
| WIDTH="20%" |
| ALIGN="RIGHT" |
| VALIGN="TOP" |
| ><TT |
| CLASS="PARAMETER" |
| ><I |
| >doc</I |
| ></TT |
| > :</TD |
| ><TD |
| WIDTH="80%" |
| ALIGN="LEFT" |
| VALIGN="TOP" |
| > the document</TD |
| ></TR |
| ><TR |
| ><TD |
| WIDTH="20%" |
| ALIGN="RIGHT" |
| VALIGN="TOP" |
| ><TT |
| CLASS="PARAMETER" |
| ><I |
| >encoding</I |
| ></TT |
| > :</TD |
| ><TD |
| WIDTH="80%" |
| ALIGN="LEFT" |
| VALIGN="TOP" |
| > the encoding string</TD |
| ></TR |
| ><TR |
| ><TD |
| WIDTH="20%" |
| ALIGN="RIGHT" |
| VALIGN="TOP" |
| ><I |
| CLASS="EMPHASIS" |
| >Returns</I |
| > :</TD |
| ><TD |
| WIDTH="80%" |
| ALIGN="LEFT" |
| VALIGN="TOP" |
| >0 in case of success and -1 in case of error</TD |
| ></TR |
| ></TABLE |
| ><P |
| ></P |
| ></DIV |
| ></DIV |
| ><HR><DIV |
| CLASS="REFSECT2" |
| ><A |
| NAME="AEN10309" |
| ></A |
| ><H3 |
| ><A |
| NAME="HTMLDOCDUMPMEMORY" |
| ></A |
| >htmlDocDumpMemory ()</H3 |
| ><TABLE |
| BORDER="0" |
| BGCOLOR="#D6E8FF" |
| WIDTH="100%" |
| CELLPADDING="6" |
| ><TR |
| ><TD |
| ><PRE |
| CLASS="PROGRAMLISTING" |
| >void htmlDocDumpMemory (<A |
| HREF="gnome-xml-tree.html#XMLDOCPTR" |
| >xmlDocPtr</A |
| > cur, |
| <A |
| HREF="gnome-xml-tree.html#XMLCHAR" |
| >xmlChar</A |
| > **mem, |
| int *size);</PRE |
| ></TD |
| ></TR |
| ></TABLE |
| ><P |
| >Dump an HTML document in memory and return the xmlChar * and it's size. |
| It's up to the caller to free the memory.</P |
| ><P |
| ></P |
| ><DIV |
| CLASS="INFORMALTABLE" |
| ><P |
| ></P |
| ><TABLE |
| BORDER="0" |
| WIDTH="100%" |
| BGCOLOR="#FFD0D0" |
| CELLSPACING="0" |
| CELLPADDING="4" |
| CLASS="CALSTABLE" |
| ><TR |
| ><TD |
| WIDTH="20%" |
| ALIGN="RIGHT" |
| VALIGN="TOP" |
| ><TT |
| CLASS="PARAMETER" |
| ><I |
| >cur</I |
| ></TT |
| > :</TD |
| ><TD |
| WIDTH="80%" |
| ALIGN="LEFT" |
| VALIGN="TOP" |
| > the document</TD |
| ></TR |
| ><TR |
| ><TD |
| WIDTH="20%" |
| ALIGN="RIGHT" |
| VALIGN="TOP" |
| ><TT |
| CLASS="PARAMETER" |
| ><I |
| >mem</I |
| ></TT |
| > :</TD |
| ><TD |
| WIDTH="80%" |
| ALIGN="LEFT" |
| VALIGN="TOP" |
| > OUT: the memory pointer</TD |
| ></TR |
| ><TR |
| ><TD |
| WIDTH="20%" |
| ALIGN="RIGHT" |
| VALIGN="TOP" |
| ><TT |
| CLASS="PARAMETER" |
| ><I |
| >size</I |
| ></TT |
| > :</TD |
| ><TD |
| WIDTH="80%" |
| ALIGN="LEFT" |
| VALIGN="TOP" |
| > OUT: the memory lenght</TD |
| ></TR |
| ></TABLE |
| ><P |
| ></P |
| ></DIV |
| ></DIV |
| ><HR><DIV |
| CLASS="REFSECT2" |
| ><A |
| NAME="AEN10334" |
| ></A |
| ><H3 |
| ><A |
| NAME="HTMLDOCDUMP" |
| ></A |
| >htmlDocDump ()</H3 |
| ><TABLE |
| BORDER="0" |
| BGCOLOR="#D6E8FF" |
| WIDTH="100%" |
| CELLPADDING="6" |
| ><TR |
| ><TD |
| ><PRE |
| CLASS="PROGRAMLISTING" |
| >int htmlDocDump (<GTKDOCLINK |
| HREF="FILE" |
| >FILE</GTKDOCLINK |
| > *f, |
| <A |
| HREF="gnome-xml-tree.html#XMLDOCPTR" |
| >xmlDocPtr</A |
| > cur);</PRE |
| ></TD |
| ></TR |
| ></TABLE |
| ><P |
| >Dump an HTML document to an open FILE.</P |
| ><P |
| ></P |
| ><DIV |
| CLASS="INFORMALTABLE" |
| ><P |
| ></P |
| ><TABLE |
| BORDER="0" |
| WIDTH="100%" |
| BGCOLOR="#FFD0D0" |
| CELLSPACING="0" |
| CELLPADDING="4" |
| CLASS="CALSTABLE" |
| ><TR |
| ><TD |
| WIDTH="20%" |
| ALIGN="RIGHT" |
| VALIGN="TOP" |
| ><TT |
| CLASS="PARAMETER" |
| ><I |
| >f</I |
| ></TT |
| > :</TD |
| ><TD |
| WIDTH="80%" |
| ALIGN="LEFT" |
| VALIGN="TOP" |
| > the FILE*</TD |
| ></TR |
| ><TR |
| ><TD |
| WIDTH="20%" |
| ALIGN="RIGHT" |
| VALIGN="TOP" |
| ><TT |
| CLASS="PARAMETER" |
| ><I |
| >cur</I |
| ></TT |
| > :</TD |
| ><TD |
| WIDTH="80%" |
| ALIGN="LEFT" |
| VALIGN="TOP" |
| > the document</TD |
| ></TR |
| ><TR |
| ><TD |
| WIDTH="20%" |
| ALIGN="RIGHT" |
| VALIGN="TOP" |
| ><I |
| CLASS="EMPHASIS" |
| >Returns</I |
| > :</TD |
| ><TD |
| WIDTH="80%" |
| ALIGN="LEFT" |
| VALIGN="TOP" |
| > the number of byte written or -1 in case of failure.</TD |
| ></TR |
| ></TABLE |
| ><P |
| ></P |
| ></DIV |
| ></DIV |
| ><HR><DIV |
| CLASS="REFSECT2" |
| ><A |
| NAME="AEN10359" |
| ></A |
| ><H3 |
| ><A |
| NAME="HTMLSAVEFILE" |
| ></A |
| >htmlSaveFile ()</H3 |
| ><TABLE |
| BORDER="0" |
| BGCOLOR="#D6E8FF" |
| WIDTH="100%" |
| CELLPADDING="6" |
| ><TR |
| ><TD |
| ><PRE |
| CLASS="PROGRAMLISTING" |
| >int htmlSaveFile (const char *filename, |
| <A |
| HREF="gnome-xml-tree.html#XMLDOCPTR" |
| >xmlDocPtr</A |
| > cur);</PRE |
| ></TD |
| ></TR |
| ></TABLE |
| ><P |
| >Dump an HTML document to a file. If <TT |
| CLASS="PARAMETER" |
| ><I |
| >filename</I |
| ></TT |
| > is "-" the stdout file is |
| used.</P |
| ><P |
| ></P |
| ><DIV |
| CLASS="INFORMALTABLE" |
| ><P |
| ></P |
| ><TABLE |
| BORDER="0" |
| WIDTH="100%" |
| BGCOLOR="#FFD0D0" |
| CELLSPACING="0" |
| CELLPADDING="4" |
| CLASS="CALSTABLE" |
| ><TR |
| ><TD |
| WIDTH="20%" |
| ALIGN="RIGHT" |
| VALIGN="TOP" |
| ><TT |
| CLASS="PARAMETER" |
| ><I |
| >filename</I |
| ></TT |
| > :</TD |
| ><TD |
| WIDTH="80%" |
| ALIGN="LEFT" |
| VALIGN="TOP" |
| > the filename (or URL)</TD |
| ></TR |
| ><TR |
| ><TD |
| WIDTH="20%" |
| ALIGN="RIGHT" |
| VALIGN="TOP" |
| ><TT |
| CLASS="PARAMETER" |
| ><I |
| >cur</I |
| ></TT |
| > :</TD |
| ><TD |
| WIDTH="80%" |
| ALIGN="LEFT" |
| VALIGN="TOP" |
| > the document</TD |
| ></TR |
| ><TR |
| ><TD |
| WIDTH="20%" |
| ALIGN="RIGHT" |
| VALIGN="TOP" |
| ><I |
| CLASS="EMPHASIS" |
| >Returns</I |
| > :</TD |
| ><TD |
| WIDTH="80%" |
| ALIGN="LEFT" |
| VALIGN="TOP" |
| > the number of byte written or -1 in case of failure.</TD |
| ></TR |
| ></TABLE |
| ><P |
| ></P |
| ></DIV |
| ></DIV |
| ><HR><DIV |
| CLASS="REFSECT2" |
| ><A |
| NAME="AEN10384" |
| ></A |
| ><H3 |
| ><A |
| NAME="HTMLNODEDUMP" |
| ></A |
| >htmlNodeDump ()</H3 |
| ><TABLE |
| BORDER="0" |
| BGCOLOR="#D6E8FF" |
| WIDTH="100%" |
| CELLPADDING="6" |
| ><TR |
| ><TD |
| ><PRE |
| CLASS="PROGRAMLISTING" |
| >void htmlNodeDump (<A |
| HREF="gnome-xml-tree.html#XMLBUFFERPTR" |
| >xmlBufferPtr</A |
| > buf, |
| <A |
| HREF="gnome-xml-tree.html#XMLDOCPTR" |
| >xmlDocPtr</A |
| > doc, |
| <A |
| HREF="gnome-xml-tree.html#XMLNODEPTR" |
| >xmlNodePtr</A |
| > cur);</PRE |
| ></TD |
| ></TR |
| ></TABLE |
| ><P |
| >Dump an HTML node, recursive behaviour,children are printed too.</P |
| ><P |
| ></P |
| ><DIV |
| CLASS="INFORMALTABLE" |
| ><P |
| ></P |
| ><TABLE |
| BORDER="0" |
| WIDTH="100%" |
| BGCOLOR="#FFD0D0" |
| CELLSPACING="0" |
| CELLPADDING="4" |
| CLASS="CALSTABLE" |
| ><TR |
| ><TD |
| WIDTH="20%" |
| ALIGN="RIGHT" |
| VALIGN="TOP" |
| ><TT |
| CLASS="PARAMETER" |
| ><I |
| >buf</I |
| ></TT |
| > :</TD |
| ><TD |
| WIDTH="80%" |
| ALIGN="LEFT" |
| VALIGN="TOP" |
| > the HTML buffer output</TD |
| ></TR |
| ><TR |
| ><TD |
| WIDTH="20%" |
| ALIGN="RIGHT" |
| VALIGN="TOP" |
| ><TT |
| CLASS="PARAMETER" |
| ><I |
| >doc</I |
| ></TT |
| > :</TD |
| ><TD |
| WIDTH="80%" |
| ALIGN="LEFT" |
| VALIGN="TOP" |
| > the document</TD |
| ></TR |
| ><TR |
| ><TD |
| WIDTH="20%" |
| ALIGN="RIGHT" |
| VALIGN="TOP" |
| ><TT |
| CLASS="PARAMETER" |
| ><I |
| >cur</I |
| ></TT |
| > :</TD |
| ><TD |
| WIDTH="80%" |
| ALIGN="LEFT" |
| VALIGN="TOP" |
| > the current node</TD |
| ></TR |
| ></TABLE |
| ><P |
| ></P |
| ></DIV |
| ></DIV |
| ><HR><DIV |
| CLASS="REFSECT2" |
| ><A |
| NAME="AEN10410" |
| ></A |
| ><H3 |
| ><A |
| NAME="HTMLNODEDUMPFILE" |
| ></A |
| >htmlNodeDumpFile ()</H3 |
| ><TABLE |
| BORDER="0" |
| BGCOLOR="#D6E8FF" |
| WIDTH="100%" |
| CELLPADDING="6" |
| ><TR |
| ><TD |
| ><PRE |
| CLASS="PROGRAMLISTING" |
| >void htmlNodeDumpFile (<GTKDOCLINK |
| HREF="FILE" |
| >FILE</GTKDOCLINK |
| > *out, |
| <A |
| HREF="gnome-xml-tree.html#XMLDOCPTR" |
| >xmlDocPtr</A |
| > doc, |
| <A |
| HREF="gnome-xml-tree.html#XMLNODEPTR" |
| >xmlNodePtr</A |
| > cur);</PRE |
| ></TD |
| ></TR |
| ></TABLE |
| ><P |
| >Dump an HTML node, recursive behaviour,children are printed too.</P |
| ><P |
| ></P |
| ><DIV |
| CLASS="INFORMALTABLE" |
| ><P |
| ></P |
| ><TABLE |
| BORDER="0" |
| WIDTH="100%" |
| BGCOLOR="#FFD0D0" |
| CELLSPACING="0" |
| CELLPADDING="4" |
| CLASS="CALSTABLE" |
| ><TR |
| ><TD |
| WIDTH="20%" |
| ALIGN="RIGHT" |
| VALIGN="TOP" |
| ><TT |
| CLASS="PARAMETER" |
| ><I |
| >out</I |
| ></TT |
| > :</TD |
| ><TD |
| WIDTH="80%" |
| ALIGN="LEFT" |
| VALIGN="TOP" |
| > the FILE pointer</TD |
| ></TR |
| ><TR |
| ><TD |
| WIDTH="20%" |
| ALIGN="RIGHT" |
| VALIGN="TOP" |
| ><TT |
| CLASS="PARAMETER" |
| ><I |
| >doc</I |
| ></TT |
| > :</TD |
| ><TD |
| WIDTH="80%" |
| ALIGN="LEFT" |
| VALIGN="TOP" |
| > the document</TD |
| ></TR |
| ><TR |
| ><TD |
| WIDTH="20%" |
| ALIGN="RIGHT" |
| VALIGN="TOP" |
| ><TT |
| CLASS="PARAMETER" |
| ><I |
| >cur</I |
| ></TT |
| > :</TD |
| ><TD |
| WIDTH="80%" |
| ALIGN="LEFT" |
| VALIGN="TOP" |
| > the current node</TD |
| ></TR |
| ></TABLE |
| ><P |
| ></P |
| ></DIV |
| ></DIV |
| ><HR><DIV |
| CLASS="REFSECT2" |
| ><A |
| NAME="AEN10436" |
| ></A |
| ><H3 |
| ><A |
| NAME="HTMLSAVEFILEENC" |
| ></A |
| >htmlSaveFileEnc ()</H3 |
| ><TABLE |
| BORDER="0" |
| BGCOLOR="#D6E8FF" |
| WIDTH="100%" |
| CELLPADDING="6" |
| ><TR |
| ><TD |
| ><PRE |
| CLASS="PROGRAMLISTING" |
| >int htmlSaveFileEnc (const char *filename, |
| <A |
| HREF="gnome-xml-tree.html#XMLDOCPTR" |
| >xmlDocPtr</A |
| > cur, |
| const char *encoding);</PRE |
| ></TD |
| ></TR |
| ></TABLE |
| ><P |
| >Dump an HTML document to a file using a given encoding.</P |
| ><P |
| ></P |
| ><DIV |
| CLASS="INFORMALTABLE" |
| ><P |
| ></P |
| ><TABLE |
| BORDER="0" |
| WIDTH="100%" |
| BGCOLOR="#FFD0D0" |
| CELLSPACING="0" |
| CELLPADDING="4" |
| CLASS="CALSTABLE" |
| ><TR |
| ><TD |
| WIDTH="20%" |
| ALIGN="RIGHT" |
| VALIGN="TOP" |
| ><TT |
| CLASS="PARAMETER" |
| ><I |
| >filename</I |
| ></TT |
| > :</TD |
| ><TD |
| WIDTH="80%" |
| ALIGN="LEFT" |
| VALIGN="TOP" |
| > the filename</TD |
| ></TR |
| ><TR |
| ><TD |
| WIDTH="20%" |
| ALIGN="RIGHT" |
| VALIGN="TOP" |
| ><TT |
| CLASS="PARAMETER" |
| ><I |
| >cur</I |
| ></TT |
| > :</TD |
| ><TD |
| WIDTH="80%" |
| ALIGN="LEFT" |
| VALIGN="TOP" |
| > the document</TD |
| ></TR |
| ><TR |
| ><TD |
| WIDTH="20%" |
| ALIGN="RIGHT" |
| VALIGN="TOP" |
| ><TT |
| CLASS="PARAMETER" |
| ><I |
| >encoding</I |
| ></TT |
| > :</TD |
| ><TD |
| WIDTH="80%" |
| ALIGN="LEFT" |
| VALIGN="TOP" |
| > </TD |
| ></TR |
| ><TR |
| ><TD |
| WIDTH="20%" |
| ALIGN="RIGHT" |
| VALIGN="TOP" |
| ><I |
| CLASS="EMPHASIS" |
| >Returns</I |
| > :</TD |
| ><TD |
| WIDTH="80%" |
| ALIGN="LEFT" |
| VALIGN="TOP" |
| > the number of byte written or -1 in case of failure.</TD |
| ></TR |
| ></TABLE |
| ><P |
| ></P |
| ></DIV |
| ></DIV |
| ></DIV |
| ><DIV |
| CLASS="NAVFOOTER" |
| ><BR |
| CLEAR="all"><BR><TABLE |
| WIDTH="100%" |
| BORDER="0" |
| BGCOLOR="#000000" |
| CELLPADDING="1" |
| CELLSPACING="0" |
| ><TR |
| ><TD |
| WIDTH="25%" |
| BGCOLOR="#C00000" |
| ALIGN="left" |
| ><A |
| HREF="gnome-xml-htmlparser.html" |
| ><FONT |
| COLOR="#FFFFFF" |
| SIZE="3" |
| ><B |
| ><<< Previous Page</B |
| ></FONT |
| ></A |
| ></TD |
| ><TD |
| WIDTH="25%" |
| BGCOLOR="#0000C0" |
| ALIGN="center" |
| ><FONT |
| COLOR="#FFFFFF" |
| SIZE="3" |
| ><B |
| ><A |
| HREF="book1.html" |
| ><FONT |
| COLOR="#FFFFFF" |
| SIZE="3" |
| ><B |
| >Home</B |
| ></FONT |
| ></A |
| ></B |
| ></FONT |
| ></TD |
| ><TD |
| WIDTH="25%" |
| BGCOLOR="#00C000" |
| ALIGN="center" |
| ><FONT |
| COLOR="#FFFFFF" |
| SIZE="3" |
| ><B |
| ><A |
| HREF="libxml-lib.html" |
| ><FONT |
| COLOR="#FFFFFF" |
| SIZE="3" |
| ><B |
| >Up</B |
| ></FONT |
| ></A |
| ></B |
| ></FONT |
| ></TD |
| ><TD |
| WIDTH="25%" |
| BGCOLOR="#C00000" |
| ALIGN="right" |
| ><A |
| HREF="gnome-xml-xpath.html" |
| ><FONT |
| COLOR="#FFFFFF" |
| SIZE="3" |
| ><B |
| >Next Page >>></B |
| ></FONT |
| ></A |
| ></TD |
| ></TR |
| ><TR |
| ><TD |
| COLSPAN="2" |
| ALIGN="left" |
| ><FONT |
| COLOR="#FFFFFF" |
| SIZE="3" |
| ><B |
| >HTMLparser</B |
| ></FONT |
| ></TD |
| ><TD |
| COLSPAN="2" |
| ALIGN="right" |
| ><FONT |
| COLOR="#FFFFFF" |
| SIZE="3" |
| ><B |
| >xpath</B |
| ></FONT |
| ></TD |
| ></TR |
| ></TABLE |
| ></DIV |
| ></BODY |
| ></HTML |
| > |