Owen Taylor | 3473f88 | 2001-02-23 17:55:21 +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 | |
| 13 | #include <stdio.h> |
| 14 | #include <libxml/tree.h> |
| 15 | #include <libxml/HTMLparser.h> |
| 16 | |
| 17 | |
| 18 | #ifdef __cplusplus |
| 19 | extern "C" { |
| 20 | #endif |
| 21 | |
| 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 |
| 25 | #define HTML_PRESERVE_NODE XML_CDATA_SECTION_NODE |
| 26 | |
| 27 | htmlDocPtr htmlNewDoc (const xmlChar *URI, |
| 28 | const xmlChar *ExternalID); |
| 29 | htmlDocPtr htmlNewDocNoDtD (const xmlChar *URI, |
| 30 | const xmlChar *ExternalID); |
| 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); |
| 50 | |
| 51 | /* This one is imported from xmlIO.h |
| 52 | void htmlDocContentDumpOutput(xmlOutputBufferPtr buf, |
| 53 | xmlDocPtr cur, |
| 54 | const char *encoding); |
| 55 | */ |
| 56 | #ifdef __cplusplus |
| 57 | } |
| 58 | #endif |
| 59 | |
| 60 | #endif /* __HTML_TREE_H__ */ |
| 61 | |