1 * Summary: specific APIs to process HTML tree, especially serialization 2 * Description: this module implements a few function needed to process 3 * tree in an HTML specific way. 4 * 5 * Copy: See Copyright for the status of this software. 6 * 7 * Author: Patrick Monnerat <pm@datasphere.ch>, DATASPHERE S.A. 8 9 /if not defined(HTML_TREE_H__) 10 /define HTML_TREE_H__ 11 12 /include "libxmlrpg/xmlversion" 13 14 /if defined(LIBXML_HTML_ENABLED) 15 16 /include "libxmlrpg/xmlTypesC" 17 /include "libxmlrpg/tree" 18 /include "libxmlrpg/HTMLparser" 19 20 * HTML_TEXT_NODE: 21 * 22 * Macro. A text node in a HTML document is really implemented 23 * the same way as a text node in an XML document. 24 25 d HTML_TEXT_NODE c 3 26 27 * HTML_ENTITY_REF_NODE: 28 * 29 * Macro. An entity reference in a HTML document is really implemented 30 * the same way as an entity reference in an XML document. 31 32 d HTML_ENTITY_REF_NODE... 33 d c 5 34 35 * HTML_COMMENT_NODE: 36 * 37 * Macro. A comment in a HTML document is really implemented 38 * the same way as a comment in an XML document. 39 40 d HTML_COMMENT_NODE... 41 d c 8 42 43 * HTML_PRESERVE_NODE: 44 * 45 * Macro. A preserved node in a HTML document is really implemented 46 * the same way as a CDATA section in an XML document. 47 48 d HTML_PRESERVE_NODE... 49 d c 4 50 51 * HTML_PI_NODE: 52 * 53 * Macro. A processing instruction in a HTML document is really implemented 54 * the same way as a processing instruction in an XML document. 55 56 d HTML_PI_NODE c 7 57 58 d htmlNewDoc pr extproc('htmlNewDoc') 59 d like(htmlDocPtr) 60 d URI * value options(*string) const xmlChar * 61 d ExternalID * value options(*string) const xmlChar * 62 63 d htmlNewDocNoDtD... 64 d pr extproc('htmlNewDocNoDtD') 65 d like(htmlDocPtr) 66 d URI * value options(*string) const xmlChar * 67 d ExternalID * value options(*string) const xmlChar * 68 69 d htmlGetMetaEncoding... 70 d pr * extproc('htmlGetMetaEncoding') const xmlChar * 71 d doc value like(htmlDocPtr) 72 73 d htmlSetMetaEncoding... 74 d pr extproc('htmlSetMetaEncoding') 75 d like(xmlCint) 76 d doc value like(htmlDocPtr) 77 d encoding * value options(*string) const xmlChar * 78 79 /if defined(LIBXML_OUTPUT_ENABLED) 80 d htmlDocDumpMemory... 81 d pr extproc('htmlDocDumpMemory') 82 d cur value like(xmlDocPtr) 83 d mem * value xmlChar * * 84 d size like(xmlCint) 85 86 d htmlDocDumpMemoryFormat... 87 d pr extproc('htmlDocDumpMemoryFormat') 88 d cur value like(xmlDocPtr) 89 d mem * value xmlChar * * 90 d size like(xmlCint) 91 d format value like(xmlCint) 92 93 d htmlDocDump pr extproc('htmlDocDump') 94 d like(xmlCint) 95 d f * value FILE * 96 d cur value like(xmlDocPtr) 97 98 d htmlSaveFile pr extproc('htmlSaveFile') 99 d like(xmlCint) 100 d filename * value options(*string) const char * 101 d cur value like(xmlDocPtr) 102 103 d htmlNodeDump pr extproc('htmlNodeDump') 104 d like(xmlCint) 105 d buf value like(xmlBufferPtr) 106 d doc value like(xmlDocPtr) 107 d cur value like(xmlNodePtr) 108 109 d htmlNodeDumpFile... 110 d pr extproc('htmlNodeDumpFile') 111 d out * value FILE * 112 d doc value like(xmlDocPtr) 113 d cur value like(xmlNodePtr) 114 115 d htmlNodeDumpFileFormat... 116 d pr extproc('htmlNodeDumpFileFormat') 117 d like(xmlCint) 118 d out * value FILE * 119 d doc value like(xmlDocPtr) 120 d cur value like(xmlNodePtr) 121 d encoding * value options(*string) const char * 122 d format value like(xmlCint) 123 124 d htmlSaveFileEnc... 125 d pr extproc('htmlSaveFileEnc') 126 d like(xmlCint) 127 d filename * value options(*string) const char * 128 d cur value like(xmlDocPtr) 129 d encoding * value options(*string) const char * 130 131 d htmlSaveFileFormat... 132 d pr extproc('htmlSaveFileFormat') 133 d like(xmlCint) 134 d filename * value options(*string) const char * 135 d cur value like(xmlDocPtr) 136 d encoding * value options(*string) const char * 137 d format value like(xmlCint) 138 139 d htmlNodeDumpFormatOutput... 140 d pr extproc('htmlNodeDumpFormatOutput') 141 d buf value like(xmlOutputBufferPtr) 142 d doc value like(xmlDocPtr) 143 d cur value like(xmlNodePtr) 144 d encoding * value options(*string) const char * 145 d format value like(xmlCint) 146 147 d htmlDocContentDumpOutput... 148 d pr extproc('htmlDocContentDumpOutput') 149 d buf value like(xmlOutputBufferPtr) 150 d cur value like(xmlDocPtr) 151 d encoding * value options(*string) const char * 152 153 d htmlDocContentDumpFormatOutput... 154 d pr extproc( 155 d 'htmlDocContentDumpFormatOutput') 156 d buf value like(xmlOutputBufferPtr) 157 d cur value like(xmlDocPtr) 158 d encoding * value options(*string) const char * 159 d format value like(xmlCint) 160 161 d htmlNodeDumpOutput... 162 d pr extproc('htmlNodeDumpOutput') 163 d buf value like(xmlOutputBufferPtr) 164 d doc value like(xmlDocPtr) 165 d cur value like(xmlNodePtr) 166 d encoding * value options(*string) const char * 167 168 /endif LIBXML_OUTPUT_ENABLD 169 170 d htmlIsBooleanAttr... 171 d pr extproc('htmlIsBooleanAttr') 172 d like(xmlCint) 173 d name * value options(*string) const xmlChar * 174 175 /endif LIBXML_HTML_ENABLED 176 /endif HTML_TREE_H__ 177