Team Ai
Datasetpublic

codekingpro/portable-devtools

sourceHugging Faceupdated 5mo agoView on Hugging Face
1likes16kdownloads
HTMLtree.h148 linesDownload Raw Back to libxml
1/*2 * Summary: specific APIs to process HTML tree, especially serialization3 * Description: this module implements a few function needed to process4 *              tree in an HTML specific way.5 *6 * Copy: See Copyright for the status of this software.7 *8 * Author: Daniel Veillard9 */10 11#ifndef __HTML_TREE_H__12#define __HTML_TREE_H__13 14#include <stdio.h>15#include <libxml/xmlversion.h>16#include <libxml/tree.h>17#include <libxml/HTMLparser.h>18 19#ifdef LIBXML_HTML_ENABLED20 21#ifdef __cplusplus22extern "C" {23#endif24 25 26/**27 * HTML_TEXT_NODE:28 *29 * Macro. A text node in a HTML document is really implemented30 * the same way as a text node in an XML document.31 */32#define HTML_TEXT_NODE		XML_TEXT_NODE33/**34 * HTML_ENTITY_REF_NODE:35 *36 * Macro. An entity reference in a HTML document is really implemented37 * the same way as an entity reference in an XML document.38 */39#define HTML_ENTITY_REF_NODE	XML_ENTITY_REF_NODE40/**41 * HTML_COMMENT_NODE:42 *43 * Macro. A comment in a HTML document is really implemented44 * the same way as a comment in an XML document.45 */46#define HTML_COMMENT_NODE	XML_COMMENT_NODE47/**48 * HTML_PRESERVE_NODE:49 *50 * Macro. A preserved node in a HTML document is really implemented51 * the same way as a CDATA section in an XML document.52 */53#define HTML_PRESERVE_NODE	XML_CDATA_SECTION_NODE54/**55 * HTML_PI_NODE:56 *57 * Macro. A processing instruction in a HTML document is really implemented58 * the same way as a processing instruction in an XML document.59 */60#define HTML_PI_NODE		XML_PI_NODE61 62XMLPUBFUN htmlDocPtr63		htmlNewDoc		(const xmlChar *URI,64					 const xmlChar *ExternalID);65XMLPUBFUN htmlDocPtr66		htmlNewDocNoDtD		(const xmlChar *URI,67					 const xmlChar *ExternalID);68XMLPUBFUN const xmlChar *69		htmlGetMetaEncoding	(htmlDocPtr doc);70XMLPUBFUN int71		htmlSetMetaEncoding	(htmlDocPtr doc,72					 const xmlChar *encoding);73#ifdef LIBXML_OUTPUT_ENABLED74XMLPUBFUN void75		htmlDocDumpMemory	(xmlDocPtr cur,76					 xmlChar **mem,77					 int *size);78XMLPUBFUN void79		htmlDocDumpMemoryFormat	(xmlDocPtr cur,80					 xmlChar **mem,81					 int *size,82					 int format);83XMLPUBFUN int84		htmlDocDump		(FILE *f,85					 xmlDocPtr cur);86XMLPUBFUN int87		htmlSaveFile		(const char *filename,88					 xmlDocPtr cur);89XMLPUBFUN int90		htmlNodeDump		(xmlBufferPtr buf,91					 xmlDocPtr doc,92					 xmlNodePtr cur);93XMLPUBFUN void94		htmlNodeDumpFile	(FILE *out,95					 xmlDocPtr doc,96					 xmlNodePtr cur);97XMLPUBFUN int98		htmlNodeDumpFileFormat	(FILE *out,99					 xmlDocPtr doc,100					 xmlNodePtr cur,101					 const char *encoding,102					 int format);103XMLPUBFUN int104		htmlSaveFileEnc		(const char *filename,105					 xmlDocPtr cur,106					 const char *encoding);107XMLPUBFUN int108		htmlSaveFileFormat	(const char *filename,109					 xmlDocPtr cur,110					 const char *encoding,111					 int format);112 113XMLPUBFUN void114		htmlNodeDumpFormatOutput(xmlOutputBufferPtr buf,115					 xmlDocPtr doc,116					 xmlNodePtr cur,117					 const char *encoding,118					 int format);119XMLPUBFUN void120		htmlDocContentDumpOutput(xmlOutputBufferPtr buf,121					 xmlDocPtr cur,122					 const char *encoding);123XMLPUBFUN void124		htmlDocContentDumpFormatOutput(xmlOutputBufferPtr buf,125					 xmlDocPtr cur,126					 const char *encoding,127					 int format);128XMLPUBFUN void129		htmlNodeDumpOutput	(xmlOutputBufferPtr buf,130					 xmlDocPtr doc,131					 xmlNodePtr cur,132					 const char *encoding);133 134#endif /* LIBXML_OUTPUT_ENABLED */135 136XMLPUBFUN int137		htmlIsBooleanAttr	(const xmlChar *name);138 139 140#ifdef __cplusplus141}142#endif143 144#endif /* LIBXML_HTML_ENABLED */145 146#endif /* __HTML_TREE_H__ */147 148 
codekingpro/portable-devtools · Team Ai