HTMLtree

Name

HTMLtree —

Synopsis



#define     HTML_TEXT_NODE
#define     HTML_ENTITY_REF_NODE
#define     HTML_COMMENT_NODE
htmlDocPtr  htmlNewDoc                      (const xmlChar *URI,
                                             const xmlChar *ExternalID);
htmlDocPtr  htmlNewDocNoDtD                 (const xmlChar *URI,
                                             const xmlChar *ExternalID);
const xmlChar* htmlGetMetaEncoding          (htmlDocPtr doc);
int         htmlSetMetaEncoding             (htmlDocPtr doc,
                                             const xmlChar *encoding);
void        htmlDocDumpMemory               (xmlDocPtr cur,
                                             xmlChar **mem,
                                             int *size);
int         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);
int         htmlSaveFileEnc                 (const char *filename,
                                             xmlDocPtr cur,
                                             const char *encoding);

Description

Details

HTML_TEXT_NODE

#define     HTML_TEXT_NODE


HTML_ENTITY_REF_NODE

#define     HTML_ENTITY_REF_NODE


HTML_COMMENT_NODE

#define     HTML_COMMENT_NODE


htmlNewDoc ()

htmlDocPtr  htmlNewDoc                      (const xmlChar *URI,
                                             const xmlChar *ExternalID);

URI : 
ExternalID : 
Returns : 


htmlNewDocNoDtD ()

htmlDocPtr  htmlNewDocNoDtD                 (const xmlChar *URI,
                                             const xmlChar *ExternalID);

URI : 
ExternalID : 
Returns : 


htmlGetMetaEncoding ()

const xmlChar* htmlGetMetaEncoding          (htmlDocPtr doc);

Encoding definition lookup in the Meta tags

doc : 
Returns : 


htmlSetMetaEncoding ()

int         htmlSetMetaEncoding             (htmlDocPtr doc,
                                             const xmlChar *encoding);

Sets the current encoding in the Meta tags NOTE: this will not change the document content encoding, just the META flag associated.

doc : 
encoding : 
Returns : 


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 : 
mem : 
size : 


htmlDocDump ()

int         htmlDocDump                     (FILE *f,
                                             xmlDocPtr cur);

Dump an HTML document to an open FILE.

f : 
cur : 
Returns : 


htmlSaveFile ()

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

Dump an HTML document to a file. If filename is "-" the stdout file is used.

filename : 
cur : 
Returns : 


htmlNodeDump ()

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

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

buf : 
doc : 
cur : 


htmlNodeDumpFile ()

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

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

out : 
doc : 
cur : 


htmlSaveFileEnc ()

int         htmlSaveFileEnc                 (const char *filename,
                                             xmlDocPtr cur,
                                             const char *encoding);

Dump an HTML document to a file using a given encoding.

filename : 
cur : 
encoding : 
Returns :