blob: 543d693d93e1fbaa50da588ceda4fb69874fa186 [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
Daniel Veillard7eda8452000-10-14 23:38:43 +000025#define HTML_PRESERVE_NODE XML_CDATA_SECTION_NODE
Daniel Veillard82150d81999-07-07 07:32:15 +000026
Daniel Veillard32bc74e2000-07-14 14:49:25 +000027htmlDocPtr htmlNewDoc (const xmlChar *URI,
28 const xmlChar *ExternalID);
Daniel Veillardb8f25c92000-08-19 19:52:36 +000029htmlDocPtr htmlNewDocNoDtD (const xmlChar *URI,
30 const xmlChar *ExternalID);
Daniel Veillard32bc74e2000-07-14 14:49:25 +000031const 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);
Daniel Veillard82150d81999-07-07 07:32:15 +000050
Daniel Veillard701c7362001-01-21 09:48:59 +000051/* This one is imported from xmlIO.h
52void htmlDocContentDumpOutput(xmlOutputBufferPtr buf,
53 xmlDocPtr cur,
54 const char *encoding);
55 */
Daniel Veillard82150d81999-07-07 07:32:15 +000056#ifdef __cplusplus
57}
58#endif
59
60#endif /* __HTML_TREE_H__ */
61