ReactOS 0.4.16-dev-92-g0c2cdca
HTMLtree.h
Go to the documentation of this file.
1/*
2 * Summary: specific APIs to process HTML tree, especially serialization
3 * Description: this module implements a few function needed to process
4 * tree in an HTML specific way.
5 *
6 * Copy: See Copyright for the status of this software.
7 *
8 * Author: Daniel Veillard
9 */
10
11#ifndef __HTML_TREE_H__
12#define __HTML_TREE_H__
13
14#include <stdio.h>
15#include <libxml/xmlversion.h>
16#include <libxml/tree.h>
17#include <libxml/HTMLparser.h>
18
19#ifdef LIBXML_HTML_ENABLED
20
21#ifdef __cplusplus
22extern "C" {
23#endif
24
25
32#define HTML_TEXT_NODE XML_TEXT_NODE
39#define HTML_ENTITY_REF_NODE XML_ENTITY_REF_NODE
46#define HTML_COMMENT_NODE XML_COMMENT_NODE
53#define HTML_PRESERVE_NODE XML_CDATA_SECTION_NODE
60#define HTML_PI_NODE XML_PI_NODE
61
62XMLPUBFUN htmlDocPtr XMLCALL
63 htmlNewDoc (const xmlChar *URI,
64 const xmlChar *ExternalID);
65XMLPUBFUN htmlDocPtr XMLCALL
66 htmlNewDocNoDtD (const xmlChar *URI,
67 const xmlChar *ExternalID);
69 htmlGetMetaEncoding (htmlDocPtr doc);
71 htmlSetMetaEncoding (htmlDocPtr doc,
72 const xmlChar *encoding);
73#ifdef LIBXML_OUTPUT_ENABLED
75 htmlDocDumpMemory (xmlDocPtr cur,
76 xmlChar **mem,
77 int *size);
79 htmlDocDumpMemoryFormat (xmlDocPtr cur,
80 xmlChar **mem,
81 int *size,
82 int format);
84 htmlDocDump (FILE *f,
87 htmlSaveFile (const char *filename,
90 htmlNodeDump (xmlBufferPtr buf,
91 xmlDocPtr doc,
94 htmlNodeDumpFile (FILE *out,
95 xmlDocPtr doc,
98 htmlNodeDumpFileFormat (FILE *out,
99 xmlDocPtr doc,
101 const char *encoding,
102 int format);
104 htmlSaveFileEnc (const char *filename,
106 const char *encoding);
108 htmlSaveFileFormat (const char *filename,
110 const char *encoding,
111 int format);
112
114 htmlNodeDumpFormatOutput(xmlOutputBufferPtr buf,
115 xmlDocPtr doc,
117 const char *encoding,
118 int format);
120 htmlDocContentDumpOutput(xmlOutputBufferPtr buf,
122 const char *encoding);
124 htmlDocContentDumpFormatOutput(xmlOutputBufferPtr buf,
126 const char *encoding,
127 int format);
129 htmlNodeDumpOutput (xmlOutputBufferPtr buf,
130 xmlDocPtr doc,
132 const char *encoding);
133
134#endif /* LIBXML_OUTPUT_ENABLED */
135
137 htmlIsBooleanAttr (const xmlChar *name);
138
139
140#ifdef __cplusplus
141}
142#endif
143
144#endif /* LIBXML_HTML_ENABLED */
145
146#endif /* __HTML_TREE_H__ */
147
#define XMLCALL
FxCollectionEntry * cur
GLsizeiptr size
Definition: glext.h:5919
GLfloat f
Definition: glext.h:7540
GLenum GLuint GLenum GLsizei const GLchar * buf
Definition: glext.h:7751
const char * filename
Definition: ioapi.h:137
static FILE * out
Definition: regtests2xml.c:44
xmlOutputBuffer * xmlOutputBufferPtr
Definition: tree.h:32
Definition: tree.h:551
Definition: tree.h:489
Definition: format.c:58
Definition: mem.c:156
Definition: name.c:39
#define XMLPUBFUN
Definition: xmlexports.h:61
static char * encoding
Definition: xmllint.c:155
unsigned char xmlChar
Definition: xmlstring.h:28