Daniel Veillard | 82150d8 | 1999-07-07 07:32:15 +0000 | [diff] [blame] | 1 | /* |
| 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 Veillard | e624482 | 1999-09-23 22:19:18 +0000 | [diff] [blame] | 13 | #include <stdio.h> |
Daniel Veillard | 361d845 | 2000-04-03 19:48:13 +0000 | [diff] [blame] | 14 | #include <libxml/tree.h> |
Daniel Veillard | e624482 | 1999-09-23 22:19:18 +0000 | [diff] [blame] | 15 | |
Daniel Veillard | 82150d8 | 1999-07-07 07:32:15 +0000 | [diff] [blame] | 16 | |
| 17 | #ifdef __cplusplus |
| 18 | extern "C" { |
| 19 | #endif |
| 20 | |
Daniel Veillard | 82150d8 | 1999-07-07 07:32:15 +0000 | [diff] [blame] | 21 | #define HTML_TEXT_NODE XML_TEXT_NODE |
| 22 | #define HTML_ENTITY_REF_NODE XML_ENTITY_REF_NODE |
| 23 | #define HTML_COMMENT_NODE XML_COMMENT_NODE |
| 24 | |
Daniel Veillard | b635f2e | 1999-09-23 22:19:18 +0000 | [diff] [blame] | 25 | void htmlDocDumpMemory(xmlDocPtr cur, xmlChar**mem, int *size); |
Daniel Veillard | 82150d8 | 1999-07-07 07:32:15 +0000 | [diff] [blame] | 26 | void htmlDocDump(FILE *f, xmlDocPtr cur); |
| 27 | int htmlSaveFile(const char *filename, xmlDocPtr cur); |
Daniel Veillard | 5feb849 | 2000-02-02 17:15:36 +0000 | [diff] [blame] | 28 | void htmlNodeDump(xmlBufferPtr buf, xmlDocPtr doc, xmlNodePtr cur); |
| 29 | void htmlNodeDumpFile(FILE *out, xmlDocPtr doc, xmlNodePtr cur); |
Daniel Veillard | 82150d8 | 1999-07-07 07:32:15 +0000 | [diff] [blame] | 30 | |
| 31 | #ifdef __cplusplus |
| 32 | } |
| 33 | #endif |
| 34 | |
| 35 | #endif /* __HTML_TREE_H__ */ |
| 36 | |