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