blob: 3888f7ccae287d55d8d2740de5fb65c74b7b36ec [file] [log] [blame]
Owen Taylor3473f882001-02-23 17:55:21 +00001/*
2 * tree.h : describes the structures found in an tree resulting
3 * from an XML parsing.
4 *
5 * See Copyright for the status of this software.
6 *
7 * Daniel.Veillard@w3.org
8 */
9
10#ifndef __HTML_TREE_H__
11#define __HTML_TREE_H__
12
13#include <stdio.h>
14#include <libxml/tree.h>
15#include <libxml/HTMLparser.h>
16
17
18#ifdef __cplusplus
19extern "C" {
20#endif
21
22#define HTML_TEXT_NODE XML_TEXT_NODE
23#define HTML_ENTITY_REF_NODE XML_ENTITY_REF_NODE
24#define HTML_COMMENT_NODE XML_COMMENT_NODE
25#define HTML_PRESERVE_NODE XML_CDATA_SECTION_NODE
Daniel Veillard7533cc82001-04-24 15:52:00 +000026#define HTML_PI_NODE XML_PI_NODE
Owen Taylor3473f882001-02-23 17:55:21 +000027
28htmlDocPtr htmlNewDoc (const xmlChar *URI,
29 const xmlChar *ExternalID);
30htmlDocPtr htmlNewDocNoDtD (const xmlChar *URI,
31 const xmlChar *ExternalID);
32const xmlChar * htmlGetMetaEncoding (htmlDocPtr doc);
33int htmlSetMetaEncoding (htmlDocPtr doc,
34 const xmlChar *encoding);
35void htmlDocDumpMemory (xmlDocPtr cur,
36 xmlChar**mem,
37 int *size);
38int htmlDocDump (FILE *f,
39 xmlDocPtr cur);
40int htmlSaveFile (const char *filename,
41 xmlDocPtr cur);
42void htmlNodeDump (xmlBufferPtr buf,
43 xmlDocPtr doc,
44 xmlNodePtr cur);
45void htmlNodeDumpFile (FILE *out,
46 xmlDocPtr doc,
47 xmlNodePtr cur);
48int htmlSaveFileEnc (const char *filename,
49 xmlDocPtr cur,
50 const char *encoding);
51
52/* This one is imported from xmlIO.h
53void htmlDocContentDumpOutput(xmlOutputBufferPtr buf,
54 xmlDocPtr cur,
55 const char *encoding);
56 */
57#ifdef __cplusplus
58}
59#endif
60
61#endif /* __HTML_TREE_H__ */
62