Whole document tree
    

Whole document tree

HTMLtree

HTMLtree

Name

HTMLtree -- 

Synopsis



#define     HTML_TEXT_NODE
#define     HTML_ENTITY_REF_NODE
#define     HTML_COMMENT_NODE
void        htmlDocDumpMemory               (xmlDocPtr cur,
                                             xmlChar **mem,
                                             int *size);
void        htmlDocDump                     (FILE *f,
                                             xmlDocPtr cur);
int         htmlSaveFile                    (const char *filename,
                                             xmlDocPtr cur);
void        htmlNodeDump                    (xmlBufferPtr buf,
                                             xmlDocPtr doc,
                                             xmlNodePtr cur);
void        htmlNodeDumpFile                (FILE *out,
                                             xmlDocPtr doc,
                                             xmlNodePtr cur);

Description

Details

HTML_TEXT_NODE

#define HTML_TEXT_NODE		XML_TEXT_NODE


HTML_ENTITY_REF_NODE

#define HTML_ENTITY_REF_NODE	XML_ENTITY_REF_NODE


HTML_COMMENT_NODE

#define HTML_COMMENT_NODE	XML_COMMENT_NODE


htmlDocDumpMemory ()

void        htmlDocDumpMemory               (xmlDocPtr cur,
                                             xmlChar **mem,
                                             int *size);

Dump an HTML document in memory and return the xmlChar * and it's size. It's up to the caller to free the memory.

cur : the document
mem : OUT: the memory pointer
size : OUT: the memory lenght


htmlDocDump ()

void        htmlDocDump                     (FILE *f,
                                             xmlDocPtr cur);

Dump an HTML document to an open FILE.

f : the FILE*
cur : the document


htmlSaveFile ()

int         htmlSaveFile                    (const char *filename,
                                             xmlDocPtr cur);

Dump an HTML document to a file.

filename : the filename
cur : the document
Returns : the number of byte written or -1 in case of failure.


htmlNodeDump ()

void        htmlNodeDump                    (xmlBufferPtr buf,
                                             xmlDocPtr doc,
                                             xmlNodePtr cur);

Dump an HTML node, recursive behaviour,children are printed too.

buf : the HTML buffer output
doc : the document
cur : the current node


htmlNodeDumpFile ()

void        htmlNodeDumpFile                (FILE *out,
                                             xmlDocPtr doc,
                                             xmlNodePtr cur);

Dump an HTML node, recursive behaviour,children are printed too.

out : the FILE pointer
doc : the document
cur : the current node