blob: 543d693d93e1fbaa50da588ceda4fb69874fa186 [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
26
27htmlDocPtr htmlNewDoc (const xmlChar *URI,
28 const xmlChar *ExternalID);
29htmlDocPtr htmlNewDocNoDtD (const xmlChar *URI,
30 const xmlChar *ExternalID);
31const xmlChar * htmlGetMetaEncoding (htmlDocPtr doc);
32int htmlSetMetaEncoding (htmlDocPtr doc,
33 const xmlChar *encoding);
34void htmlDocDumpMemory (xmlDocPtr cur,
35 xmlChar**mem,
36 int *size);
37int htmlDocDump (FILE *f,
38 xmlDocPtr cur);
39int htmlSaveFile (const char *filename,
40 xmlDocPtr cur);
41void htmlNodeDump (xmlBufferPtr buf,
42 xmlDocPtr doc,
43 xmlNodePtr cur);
44void htmlNodeDumpFile (FILE *out,
45 xmlDocPtr doc,
46 xmlNodePtr cur);
47int htmlSaveFileEnc (const char *filename,
48 xmlDocPtr cur,
49 const char *encoding);
50
51/* This one is imported from xmlIO.h
52void htmlDocContentDumpOutput(xmlOutputBufferPtr buf,
53 xmlDocPtr cur,
54 const char *encoding);
55 */
56#ifdef __cplusplus
57}
58#endif
59
60#endif /* __HTML_TREE_H__ */
61