2001-02-23 17:55:21 +00:00
/*
2001-12-31 16:16:02 +00:00
* HTMLtree . h : describes the structures found in an tree resulting
* from an XML parsing .
2001-02-23 17:55:21 +00:00
*
* See Copyright for the status of this software .
*
2001-06-24 12:13:24 +00:00
* daniel @ veillard . com
2001-02-23 17:55:21 +00:00
*/
# ifndef __HTML_TREE_H__
# define __HTML_TREE_H__
# include <stdio.h>
# include <libxml/tree.h>
# include <libxml/HTMLparser.h>
# ifdef __cplusplus
extern " C " {
# endif
2002-08-12 13:27:28 +00:00
2001-05-19 14:59:49 +00:00
/**
* HTML_TEXT_NODE :
*
2002-03-12 18:46:39 +00:00
* Macro . A text node in a HTML document is really implemented
2001-05-19 14:59:49 +00:00
* the same way as a text node in an XML document .
*/
2001-02-23 17:55:21 +00:00
# define HTML_TEXT_NODE XML_TEXT_NODE
2001-05-19 14:59:49 +00:00
/**
* HTML_ENTITY_REF_NODE :
*
2002-03-12 18:46:39 +00:00
* Macro . An entity reference in a HTML document is really implemented
2001-05-19 14:59:49 +00:00
* the same way as an entity reference in an XML document .
*/
2001-02-23 17:55:21 +00:00
# define HTML_ENTITY_REF_NODE XML_ENTITY_REF_NODE
2001-05-19 14:59:49 +00:00
/**
* HTML_COMMENT_NODE :
*
2002-03-12 18:46:39 +00:00
* Macro . A comment in a HTML document is really implemented
2001-05-19 14:59:49 +00:00
* the same way as a comment in an XML document .
*/
2001-02-23 17:55:21 +00:00
# define HTML_COMMENT_NODE XML_COMMENT_NODE
2001-05-19 14:59:49 +00:00
/**
* HTML_PRESERVE_NODE :
*
2002-03-12 18:46:39 +00:00
* Macro . A preserved node in a HTML document is really implemented
2001-05-19 14:59:49 +00:00
* the same way as a CDATA section in an XML document .
*/
2001-02-23 17:55:21 +00:00
# define HTML_PRESERVE_NODE XML_CDATA_SECTION_NODE
2001-05-19 14:59:49 +00:00
/**
* HTML_PI_NODE :
*
2002-03-12 18:46:39 +00:00
* Macro . A processing instruction in a HTML document is really implemented
2001-05-19 14:59:49 +00:00
* the same way as a processing instruction in an XML document .
*/
2001-04-24 15:52:00 +00:00
# define HTML_PI_NODE XML_PI_NODE
2001-02-23 17:55:21 +00:00
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 ,
2002-01-20 22:08:18 +00:00
xmlChar * * mem ,
2001-02-23 17:55:21 +00:00
int * size ) ;
int htmlDocDump ( FILE * f ,
xmlDocPtr cur ) ;
int htmlSaveFile ( const char * filename ,
xmlDocPtr cur ) ;
2002-11-27 19:39:27 +00:00
int htmlNodeDump ( xmlBufferPtr buf ,
2001-02-23 17:55:21 +00:00
xmlDocPtr doc ,
xmlNodePtr cur ) ;
void htmlNodeDumpFile ( FILE * out ,
xmlDocPtr doc ,
xmlNodePtr cur ) ;
2001-06-14 11:11:59 +00:00
int htmlNodeDumpFileFormat ( FILE * out ,
2001-06-13 13:48:46 +00:00
xmlDocPtr doc ,
xmlNodePtr cur ,
const char * encoding ,
int format ) ;
2001-02-23 17:55:21 +00:00
int htmlSaveFileEnc ( const char * filename ,
xmlDocPtr cur ,
const char * encoding ) ;
2001-06-13 13:48:46 +00:00
int htmlSaveFileFormat ( const char * filename ,
xmlDocPtr cur ,
const char * encoding ,
int format ) ;
2001-02-23 17:55:21 +00:00
2001-11-01 14:31:22 +00:00
void htmlNodeDumpFormatOutput ( xmlOutputBufferPtr buf ,
xmlDocPtr doc ,
xmlNodePtr cur ,
const char * encoding ,
int format ) ;
2001-02-23 17:55:21 +00:00
void htmlDocContentDumpOutput ( xmlOutputBufferPtr buf ,
xmlDocPtr cur ,
const char * encoding ) ;
2001-11-01 14:31:22 +00:00
void htmlDocContentDumpFormatOutput ( xmlOutputBufferPtr buf ,
xmlDocPtr cur ,
const char * encoding ,
int format ) ;
2002-08-12 13:27:28 +00:00
int htmlIsBooleanAttr ( const xmlChar * name ) ;
2001-02-23 17:55:21 +00:00
# ifdef __cplusplus
}
# endif
# endif /* __HTML_TREE_H__ */