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 | 3f6f7f6 | 2000-06-30 17:58:25 +0000 | [diff] [blame] | 15 | #include <libxml/HTMLparser.h> |
Daniel Veillard | e624482 | 1999-09-23 22:19:18 +0000 | [diff] [blame] | 16 | |
Daniel Veillard | 82150d8 | 1999-07-07 07:32:15 +0000 | [diff] [blame] | 17 | |
| 18 | #ifdef __cplusplus |
| 19 | extern "C" { |
| 20 | #endif |
| 21 | |
Daniel Veillard | 82150d8 | 1999-07-07 07:32:15 +0000 | [diff] [blame] | 22 | #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 Veillard | 7eda845 | 2000-10-14 23:38:43 +0000 | [diff] [blame] | 25 | #define HTML_PRESERVE_NODE XML_CDATA_SECTION_NODE |
Daniel Veillard | 82150d8 | 1999-07-07 07:32:15 +0000 | [diff] [blame] | 26 | |
Daniel Veillard | 32bc74e | 2000-07-14 14:49:25 +0000 | [diff] [blame] | 27 | htmlDocPtr htmlNewDoc (const xmlChar *URI, |
| 28 | const xmlChar *ExternalID); |
Daniel Veillard | b8f25c9 | 2000-08-19 19:52:36 +0000 | [diff] [blame] | 29 | htmlDocPtr htmlNewDocNoDtD (const xmlChar *URI, |
| 30 | const xmlChar *ExternalID); |
Daniel Veillard | 32bc74e | 2000-07-14 14:49:25 +0000 | [diff] [blame] | 31 | const xmlChar * htmlGetMetaEncoding (htmlDocPtr doc); |
| 32 | int htmlSetMetaEncoding (htmlDocPtr doc, |
| 33 | const xmlChar *encoding); |
| 34 | void htmlDocDumpMemory (xmlDocPtr cur, |
| 35 | xmlChar**mem, |
| 36 | int *size); |
| 37 | int htmlDocDump (FILE *f, |
| 38 | xmlDocPtr cur); |
| 39 | int htmlSaveFile (const char *filename, |
| 40 | xmlDocPtr cur); |
| 41 | void htmlNodeDump (xmlBufferPtr buf, |
| 42 | xmlDocPtr doc, |
| 43 | xmlNodePtr cur); |
| 44 | void htmlNodeDumpFile (FILE *out, |
| 45 | xmlDocPtr doc, |
| 46 | xmlNodePtr cur); |
| 47 | int htmlSaveFileEnc (const char *filename, |
| 48 | xmlDocPtr cur, |
| 49 | const char *encoding); |
Daniel Veillard | 82150d8 | 1999-07-07 07:32:15 +0000 | [diff] [blame] | 50 | |
| 51 | #ifdef __cplusplus |
| 52 | } |
| 53 | #endif |
| 54 | |
| 55 | #endif /* __HTML_TREE_H__ */ |
| 56 | |