mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2026-01-18 14:21:02 +03:00
* AUTHORS: added William and Bjorn * include/libxml/*.h *.c README doc/*.html etc.: changed old email to daniel@veillard.com hopefully I won't have to do this again * doc/Makefile.am doc/html/*.html: cleanup makefile, checked that docs can be rebuilt cleanly now * include/libxml/xml*version.h*: removed include/libxml/xmlversion.h from CVs it's generated, added include/libxml/xmlwin32version.h also generated but which should change far less frequently. * catalog.c nanoftp.c: made sure to include libxml.h not libxml/xmlversion.h directly * include/libxml/*.h: include xmlwin32version.h instead of xmlversion.h when compiling on WIN32 and MSC Daniel
102 lines
2.5 KiB
C
102 lines
2.5 KiB
C
/*
|
|
* tree.h : describes the structures found in an tree resulting
|
|
* from an XML parsing.
|
|
*
|
|
* See Copyright for the status of this software.
|
|
*
|
|
* daniel@veillard.com
|
|
*/
|
|
|
|
#ifndef __HTML_TREE_H__
|
|
#define __HTML_TREE_H__
|
|
|
|
#include <stdio.h>
|
|
#include <libxml/tree.h>
|
|
#include <libxml/HTMLparser.h>
|
|
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
/**
|
|
* HTML_TEXT_NODE:
|
|
*
|
|
* Macro, a text node in a HTML document is really implemented
|
|
* the same way as a text node in an XML document.
|
|
*/
|
|
#define HTML_TEXT_NODE XML_TEXT_NODE
|
|
/**
|
|
* HTML_ENTITY_REF_NODE:
|
|
*
|
|
* Macro, an entity reference in a HTML document is really implemented
|
|
* the same way as an entity reference in an XML document.
|
|
*/
|
|
#define HTML_ENTITY_REF_NODE XML_ENTITY_REF_NODE
|
|
/**
|
|
* HTML_COMMENT_NODE:
|
|
*
|
|
* Macro, a comment in a HTML document is really implemented
|
|
* the same way as a comment in an XML document.
|
|
*/
|
|
#define HTML_COMMENT_NODE XML_COMMENT_NODE
|
|
/**
|
|
* HTML_PRESERVE_NODE:
|
|
*
|
|
* Macro, a preserved node in a HTML document is really implemented
|
|
* the same way as a CDATA section in an XML document.
|
|
*/
|
|
#define HTML_PRESERVE_NODE XML_CDATA_SECTION_NODE
|
|
/**
|
|
* HTML_PI_NODE:
|
|
*
|
|
* Macro, a processing instruction in a HTML document is really implemented
|
|
* the same way as a processing instruction in an XML document.
|
|
*/
|
|
#define HTML_PI_NODE XML_PI_NODE
|
|
|
|
htmlDocPtr htmlNewDoc (const xmlChar *URI,
|
|
const xmlChar *ExternalID);
|
|
htmlDocPtr htmlNewDocNoDtD (const xmlChar *URI,
|
|
const xmlChar *ExternalID);
|
|
const xmlChar * htmlGetMetaEncoding (htmlDocPtr doc);
|
|
int htmlSetMetaEncoding (htmlDocPtr doc,
|
|
const xmlChar *encoding);
|
|
void htmlDocDumpMemory (xmlDocPtr cur,
|
|
xmlChar**mem,
|
|
int *size);
|
|
int htmlDocDump (FILE *f,
|
|
xmlDocPtr cur);
|
|
int htmlSaveFile (const char *filename,
|
|
xmlDocPtr cur);
|
|
void htmlNodeDump (xmlBufferPtr buf,
|
|
xmlDocPtr doc,
|
|
xmlNodePtr cur);
|
|
void htmlNodeDumpFile (FILE *out,
|
|
xmlDocPtr doc,
|
|
xmlNodePtr cur);
|
|
int htmlNodeDumpFileFormat (FILE *out,
|
|
xmlDocPtr doc,
|
|
xmlNodePtr cur,
|
|
const char *encoding,
|
|
int format);
|
|
int htmlSaveFileEnc (const char *filename,
|
|
xmlDocPtr cur,
|
|
const char *encoding);
|
|
int htmlSaveFileFormat (const char *filename,
|
|
xmlDocPtr cur,
|
|
const char *encoding,
|
|
int format);
|
|
|
|
/* This one is imported from xmlIO.h
|
|
void htmlDocContentDumpOutput(xmlOutputBufferPtr buf,
|
|
xmlDocPtr cur,
|
|
const char *encoding);
|
|
*/
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif /* __HTML_TREE_H__ */
|
|
|