1999-07-07 15:32:15 +08:00
|
|
|
/*
|
|
|
|
* tree.h : describes the structures found in an tree resulting
|
|
|
|
* from an XML parsing.
|
|
|
|
*
|
|
|
|
* See Copyright for the status of this software.
|
|
|
|
*
|
|
|
|
* Daniel.Veillard@w3.org
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __HTML_TREE_H__
|
|
|
|
#define __HTML_TREE_H__
|
|
|
|
|
1999-09-24 06:19:18 +08:00
|
|
|
#include <stdio.h>
|
2000-04-04 03:48:13 +08:00
|
|
|
#include <libxml/tree.h>
|
2000-07-01 01:58:25 +08:00
|
|
|
#include <libxml/HTMLparser.h>
|
1999-09-24 06:19:18 +08:00
|
|
|
|
1999-07-07 15:32:15 +08:00
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#define HTML_TEXT_NODE XML_TEXT_NODE
|
|
|
|
#define HTML_ENTITY_REF_NODE XML_ENTITY_REF_NODE
|
|
|
|
#define HTML_COMMENT_NODE XML_COMMENT_NODE
|
|
|
|
|
1999-09-24 06:19:18 +08:00
|
|
|
void htmlDocDumpMemory(xmlDocPtr cur, xmlChar**mem, int *size);
|
1999-07-07 15:32:15 +08:00
|
|
|
void htmlDocDump(FILE *f, xmlDocPtr cur);
|
|
|
|
int htmlSaveFile(const char *filename, xmlDocPtr cur);
|
2000-02-03 01:15:36 +08:00
|
|
|
void htmlNodeDump(xmlBufferPtr buf, xmlDocPtr doc, xmlNodePtr cur);
|
|
|
|
void htmlNodeDumpFile(FILE *out, xmlDocPtr doc, xmlNodePtr cur);
|
2000-07-01 01:58:25 +08:00
|
|
|
htmlDocPtr htmlNewDoc(const xmlChar *URI, const xmlChar *ExternalID);
|
1999-07-07 15:32:15 +08:00
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif /* __HTML_TREE_H__ */
|
|
|
|
|