2 * HTMLtree.h : describes the structures found in an tree resulting
5 * See Copyright for the status of this software.
10 #ifndef __HTML_TREE_H__
11 #define __HTML_TREE_H__
14 #include <libxml/tree.h>
15 #include <libxml/HTMLparser.h>
26 * Macro. A text node in a HTML document is really implemented
27 * the same way as a text node in an XML document.
29 #define HTML_TEXT_NODE XML_TEXT_NODE
31 * HTML_ENTITY_REF_NODE:
33 * Macro. An entity reference in a HTML document is really implemented
34 * the same way as an entity reference in an XML document.
36 #define HTML_ENTITY_REF_NODE XML_ENTITY_REF_NODE
40 * Macro. A comment in a HTML document is really implemented
41 * the same way as a comment in an XML document.
43 #define HTML_COMMENT_NODE XML_COMMENT_NODE
47 * Macro. A preserved node in a HTML document is really implemented
48 * the same way as a CDATA section in an XML document.
50 #define HTML_PRESERVE_NODE XML_CDATA_SECTION_NODE
54 * Macro. A processing instruction in a HTML document is really implemented
55 * the same way as a processing instruction in an XML document.
57 #define HTML_PI_NODE XML_PI_NODE
59 htmlDocPtr htmlNewDoc (const xmlChar *URI,
60 const xmlChar *ExternalID);
61 htmlDocPtr htmlNewDocNoDtD (const xmlChar *URI,
62 const xmlChar *ExternalID);
63 const xmlChar * htmlGetMetaEncoding (htmlDocPtr doc);
64 int htmlSetMetaEncoding (htmlDocPtr doc,
65 const xmlChar *encoding);
66 void htmlDocDumpMemory (xmlDocPtr cur,
69 int htmlDocDump (FILE *f,
71 int htmlSaveFile (const char *filename,
73 int htmlNodeDump (xmlBufferPtr buf,
76 void htmlNodeDumpFile (FILE *out,
79 int htmlNodeDumpFileFormat (FILE *out,
84 int htmlSaveFileEnc (const char *filename,
86 const char *encoding);
87 int htmlSaveFileFormat (const char *filename,
92 void htmlNodeDumpFormatOutput(xmlOutputBufferPtr buf,
97 void htmlDocContentDumpOutput(xmlOutputBufferPtr buf,
99 const char *encoding);
100 void htmlDocContentDumpFormatOutput(xmlOutputBufferPtr buf,
102 const char *encoding,
105 int htmlIsBooleanAttr (const xmlChar *name);
106 void htmlNodeDumpOutput(xmlOutputBufferPtr buf, xmlDocPtr doc,
107 xmlNodePtr cur, const char *encoding);
116 #endif /* __HTML_TREE_H__ */