Eneboo - Documentación para desarrolladores
|
00001 /* 00002 * Summary: specific APIs to process HTML tree, especially serialization 00003 * Description: this module implements a few function needed to process 00004 * tree in an HTML specific way. 00005 * 00006 * Copy: See Copyright for the status of this software. 00007 * 00008 * Author: Daniel Veillard 00009 */ 00010 00011 #ifndef __HTML_TREE_H__ 00012 #define __HTML_TREE_H__ 00013 00014 #include <stdio.h> 00015 #include <libxml/xmlversion.h> 00016 #include <libxml/tree.h> 00017 #include <libxml/HTMLparser.h> 00018 00019 #ifdef LIBXML_HTML_ENABLED 00020 00021 #ifdef __cplusplus 00022 extern "C" { 00023 #endif 00024 00025 00032 #define HTML_TEXT_NODE XML_TEXT_NODE 00033 00039 #define HTML_ENTITY_REF_NODE XML_ENTITY_REF_NODE 00040 00046 #define HTML_COMMENT_NODE XML_COMMENT_NODE 00047 00053 #define HTML_PRESERVE_NODE XML_CDATA_SECTION_NODE 00054 00060 #define HTML_PI_NODE XML_PI_NODE 00061 00062 XMLPUBFUN htmlDocPtr XMLCALL 00063 htmlNewDoc (const xmlChar *URI, 00064 const xmlChar *ExternalID); 00065 XMLPUBFUN htmlDocPtr XMLCALL 00066 htmlNewDocNoDtD (const xmlChar *URI, 00067 const xmlChar *ExternalID); 00068 XMLPUBFUN const xmlChar * XMLCALL 00069 htmlGetMetaEncoding (htmlDocPtr doc); 00070 XMLPUBFUN int XMLCALL 00071 htmlSetMetaEncoding (htmlDocPtr doc, 00072 const xmlChar *encoding); 00073 #ifdef LIBXML_OUTPUT_ENABLED 00074 XMLPUBFUN void XMLCALL 00075 htmlDocDumpMemory (xmlDocPtr cur, 00076 xmlChar **mem, 00077 int *size); 00078 XMLPUBFUN void XMLCALL 00079 htmlDocDumpMemoryFormat (xmlDocPtr cur, 00080 xmlChar **mem, 00081 int *size, 00082 int format); 00083 XMLPUBFUN int XMLCALL 00084 htmlDocDump (FILE *f, 00085 xmlDocPtr cur); 00086 XMLPUBFUN int XMLCALL 00087 htmlSaveFile (const char *filename, 00088 xmlDocPtr cur); 00089 XMLPUBFUN int XMLCALL 00090 htmlNodeDump (xmlBufferPtr buf, 00091 xmlDocPtr doc, 00092 xmlNodePtr cur); 00093 XMLPUBFUN void XMLCALL 00094 htmlNodeDumpFile (FILE *out, 00095 xmlDocPtr doc, 00096 xmlNodePtr cur); 00097 XMLPUBFUN int XMLCALL 00098 htmlNodeDumpFileFormat (FILE *out, 00099 xmlDocPtr doc, 00100 xmlNodePtr cur, 00101 const char *encoding, 00102 int format); 00103 XMLPUBFUN int XMLCALL 00104 htmlSaveFileEnc (const char *filename, 00105 xmlDocPtr cur, 00106 const char *encoding); 00107 XMLPUBFUN int XMLCALL 00108 htmlSaveFileFormat (const char *filename, 00109 xmlDocPtr cur, 00110 const char *encoding, 00111 int format); 00112 00113 XMLPUBFUN void XMLCALL 00114 htmlNodeDumpFormatOutput(xmlOutputBufferPtr buf, 00115 xmlDocPtr doc, 00116 xmlNodePtr cur, 00117 const char *encoding, 00118 int format); 00119 XMLPUBFUN void XMLCALL 00120 htmlDocContentDumpOutput(xmlOutputBufferPtr buf, 00121 xmlDocPtr cur, 00122 const char *encoding); 00123 XMLPUBFUN void XMLCALL 00124 htmlDocContentDumpFormatOutput(xmlOutputBufferPtr buf, 00125 xmlDocPtr cur, 00126 const char *encoding, 00127 int format); 00128 XMLPUBFUN void XMLCALL 00129 htmlNodeDumpOutput (xmlOutputBufferPtr buf, 00130 xmlDocPtr doc, 00131 xmlNodePtr cur, 00132 const char *encoding); 00133 00134 #endif /* LIBXML_OUTPUT_ENABLED */ 00135 00136 XMLPUBFUN int XMLCALL 00137 htmlIsBooleanAttr (const xmlChar *name); 00138 00139 00140 #ifdef __cplusplus 00141 } 00142 #endif 00143 00144 #endif /* LIBXML_HTML_ENABLED */ 00145 00146 #endif /* __HTML_TREE_H__ */ 00147