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 |
HTML_PRESERVE_NODE
#define HTML_PRESERVE_NODE XML_CDATA_SECTION_NODE |
HTML_PI_NODE
#define HTML_PI_NODE XML_PI_NODE |
htmlNewDoc ()
Creates a new HTML document
htmlNewDocNoDtD ()
Creates a new HTML document without a DTD node if URI and ExternalID
are NULL
htmlGetMetaEncoding ()
Encoding definition lookup in the Meta tags
htmlSetMetaEncoding ()
Sets the current encoding in the Meta tags
NOTE: this will not change the document content encoding, just
the META flag associated.
htmlDocDumpMemory ()
Dump an HTML document in memory and return the xmlChar * and it's size.
It's up to the caller to free the memory.
htmlDocDump ()
Dump an HTML document to an open FILE.
htmlSaveFile ()
int htmlSaveFile (const char *filename,
xmlDocPtr cur); |
Dump an HTML document to a file. If filename is "-" the stdout file is
used.
htmlNodeDump ()
Dump an HTML node, recursive behaviour,children are printed too,
and formatting returns are added.
htmlNodeDumpFile ()
Dump an HTML node, recursive behaviour,children are printed too,
and formatting returns are added.
htmlNodeDumpFileFormat ()
int htmlNodeDumpFileFormat (FILE *out,
xmlDocPtr doc,
xmlNodePtr cur,
const char *encoding,
int format); |
Dump an HTML node, recursive behaviour,children are printed too.
TODO: if encoding == NULL try to save in the doc encoding
htmlSaveFileEnc ()
int htmlSaveFileEnc (const char *filename,
xmlDocPtr cur,
const char *encoding); |
Dump an HTML document to a file using a given encoding
and formatting returns/spaces are added.
htmlSaveFileFormat ()
int htmlSaveFileFormat (const char *filename,
xmlDocPtr cur,
const char *encoding,
int format); |
Dump an HTML document to a file using a given encoding.