Path: blob/master/venv/Lib/site-packages/lxml/includes/libxml/HTMLtree.h
811 views
/*1* Summary: specific APIs to process HTML tree, especially serialization2* Description: this module implements a few function needed to process3* tree in an HTML specific way.4*5* Copy: See Copyright for the status of this software.6*7* Author: Daniel Veillard8*/910#ifndef __HTML_TREE_H__11#define __HTML_TREE_H__1213#include <stdio.h>14#include <libxml/xmlversion.h>15#include <libxml/tree.h>16#include <libxml/HTMLparser.h>1718#ifdef LIBXML_HTML_ENABLED1920#ifdef __cplusplus21extern "C" {22#endif232425/**26* HTML_TEXT_NODE:27*28* Macro. A text node in a HTML document is really implemented29* the same way as a text node in an XML document.30*/31#define HTML_TEXT_NODE XML_TEXT_NODE32/**33* HTML_ENTITY_REF_NODE:34*35* Macro. An entity reference in a HTML document is really implemented36* the same way as an entity reference in an XML document.37*/38#define HTML_ENTITY_REF_NODE XML_ENTITY_REF_NODE39/**40* HTML_COMMENT_NODE:41*42* Macro. A comment in a HTML document is really implemented43* the same way as a comment in an XML document.44*/45#define HTML_COMMENT_NODE XML_COMMENT_NODE46/**47* HTML_PRESERVE_NODE:48*49* Macro. A preserved node in a HTML document is really implemented50* the same way as a CDATA section in an XML document.51*/52#define HTML_PRESERVE_NODE XML_CDATA_SECTION_NODE53/**54* HTML_PI_NODE:55*56* Macro. A processing instruction in a HTML document is really implemented57* the same way as a processing instruction in an XML document.58*/59#define HTML_PI_NODE XML_PI_NODE6061XMLPUBFUN htmlDocPtr XMLCALL62htmlNewDoc (const xmlChar *URI,63const xmlChar *ExternalID);64XMLPUBFUN htmlDocPtr XMLCALL65htmlNewDocNoDtD (const xmlChar *URI,66const xmlChar *ExternalID);67XMLPUBFUN const xmlChar * XMLCALL68htmlGetMetaEncoding (htmlDocPtr doc);69XMLPUBFUN int XMLCALL70htmlSetMetaEncoding (htmlDocPtr doc,71const xmlChar *encoding);72#ifdef LIBXML_OUTPUT_ENABLED73XMLPUBFUN void XMLCALL74htmlDocDumpMemory (xmlDocPtr cur,75xmlChar **mem,76int *size);77XMLPUBFUN void XMLCALL78htmlDocDumpMemoryFormat (xmlDocPtr cur,79xmlChar **mem,80int *size,81int format);82XMLPUBFUN int XMLCALL83htmlDocDump (FILE *f,84xmlDocPtr cur);85XMLPUBFUN int XMLCALL86htmlSaveFile (const char *filename,87xmlDocPtr cur);88XMLPUBFUN int XMLCALL89htmlNodeDump (xmlBufferPtr buf,90xmlDocPtr doc,91xmlNodePtr cur);92XMLPUBFUN void XMLCALL93htmlNodeDumpFile (FILE *out,94xmlDocPtr doc,95xmlNodePtr cur);96XMLPUBFUN int XMLCALL97htmlNodeDumpFileFormat (FILE *out,98xmlDocPtr doc,99xmlNodePtr cur,100const char *encoding,101int format);102XMLPUBFUN int XMLCALL103htmlSaveFileEnc (const char *filename,104xmlDocPtr cur,105const char *encoding);106XMLPUBFUN int XMLCALL107htmlSaveFileFormat (const char *filename,108xmlDocPtr cur,109const char *encoding,110int format);111112XMLPUBFUN void XMLCALL113htmlNodeDumpFormatOutput(xmlOutputBufferPtr buf,114xmlDocPtr doc,115xmlNodePtr cur,116const char *encoding,117int format);118XMLPUBFUN void XMLCALL119htmlDocContentDumpOutput(xmlOutputBufferPtr buf,120xmlDocPtr cur,121const char *encoding);122XMLPUBFUN void XMLCALL123htmlDocContentDumpFormatOutput(xmlOutputBufferPtr buf,124xmlDocPtr cur,125const char *encoding,126int format);127XMLPUBFUN void XMLCALL128htmlNodeDumpOutput (xmlOutputBufferPtr buf,129xmlDocPtr doc,130xmlNodePtr cur,131const char *encoding);132133#endif /* LIBXML_OUTPUT_ENABLED */134135XMLPUBFUN int XMLCALL136htmlIsBooleanAttr (const xmlChar *name);137138139#ifdef __cplusplus140}141#endif142143#endif /* LIBXML_HTML_ENABLED */144145#endif /* __HTML_TREE_H__ */146147148149