blob: 17043b78d5f69dfd8c31f61d49ec05706d41994f [file] [log] [blame]
Daniel Veillard82150d81999-07-07 07:32:15 +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
Daniel Veillarde6244821999-09-23 22:19:18 +000013#include <stdio.h>
Daniel Veillard361d8452000-04-03 19:48:13 +000014#include <libxml/tree.h>
Daniel Veillard3f6f7f62000-06-30 17:58:25 +000015#include <libxml/HTMLparser.h>
Daniel Veillarde6244821999-09-23 22:19:18 +000016
Daniel Veillard82150d81999-07-07 07:32:15 +000017
18#ifdef __cplusplus
19extern "C" {
20#endif
21
Daniel Veillard82150d81999-07-07 07:32:15 +000022#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
Daniel Veillard32bc74e2000-07-14 14:49:25 +000026htmlDocPtr htmlNewDoc (const xmlChar *URI,
27 const xmlChar *ExternalID);
Daniel Veillardb8f25c92000-08-19 19:52:36 +000028htmlDocPtr htmlNewDocNoDtD (const xmlChar *URI,
29 const xmlChar *ExternalID);
Daniel Veillard32bc74e2000-07-14 14:49:25 +000030const xmlChar * htmlGetMetaEncoding (htmlDocPtr doc);
31int htmlSetMetaEncoding (htmlDocPtr doc,
32 const xmlChar *encoding);
33void htmlDocDumpMemory (xmlDocPtr cur,
34 xmlChar**mem,
35 int *size);
36int htmlDocDump (FILE *f,
37 xmlDocPtr cur);
38int htmlSaveFile (const char *filename,
39 xmlDocPtr cur);
40void htmlNodeDump (xmlBufferPtr buf,
41 xmlDocPtr doc,
42 xmlNodePtr cur);
43void htmlNodeDumpFile (FILE *out,
44 xmlDocPtr doc,
45 xmlNodePtr cur);
46int htmlSaveFileEnc (const char *filename,
47 xmlDocPtr cur,
48 const char *encoding);
Daniel Veillard82150d81999-07-07 07:32:15 +000049
50#ifdef __cplusplus
51}
52#endif
53
54#endif /* __HTML_TREE_H__ */
55