aboutsummaryrefslogtreecommitdiff
path: root/libxml2-2.9.10/os400/libxmlrpg/HTMLtree.rpgle
blob: 99c38a0c3ee54fd95814c2f46fc563b22ca4de63 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
      * Summary: specific APIs to process HTML tree, especially serialization
      * Description: this module implements a few function needed to process
      *              tree in an HTML specific way.
      *
      * Copy: See Copyright for the status of this software.
      *
      * Author: Patrick Monnerat <pm@datasphere.ch>, DATASPHERE S.A.

      /if not defined(HTML_TREE_H__)
      /define HTML_TREE_H__

      /include "libxmlrpg/xmlversion"

      /if defined(LIBXML_HTML_ENABLED)

      /include "libxmlrpg/xmlTypesC"
      /include "libxmlrpg/tree"
      /include "libxmlrpg/HTMLparser"

      * 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.

     d HTML_TEXT_NODE  c                   3

      * 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.

     d HTML_ENTITY_REF_NODE...
     d                 c                   5

      * HTML_COMMENT_NODE:
      *
      * Macro. A comment in a HTML document is really implemented
      * the same way as a comment in an XML document.

     d HTML_COMMENT_NODE...
     d                 c                   8

      * 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.

     d HTML_PRESERVE_NODE...
     d                 c                   4

      * 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.

     d HTML_PI_NODE    c                   7

     d htmlNewDoc      pr                  extproc('htmlNewDoc')
     d                                     like(htmlDocPtr)
     d  URI                            *   value options(*string)               const xmlChar *
     d  ExternalID                     *   value options(*string)               const xmlChar *

     d htmlNewDocNoDtD...
     d                 pr                  extproc('htmlNewDocNoDtD')
     d                                     like(htmlDocPtr)
     d  URI                            *   value options(*string)               const xmlChar *
     d  ExternalID                     *   value options(*string)               const xmlChar *

     d htmlGetMetaEncoding...
     d                 pr              *   extproc('htmlGetMetaEncoding')       const xmlChar *
     d  doc                                value like(htmlDocPtr)

     d htmlSetMetaEncoding...
     d                 pr                  extproc('htmlSetMetaEncoding')
     d                                     like(xmlCint)
     d  doc                                value like(htmlDocPtr)
     d  encoding                       *   value options(*string)               const xmlChar *

      /if defined(LIBXML_OUTPUT_ENABLED)
     d htmlDocDumpMemory...
     d                 pr                  extproc('htmlDocDumpMemory')
     d  cur                                value like(xmlDocPtr)
     d  mem                            *   value                                xmlChar * *
     d  size                               like(xmlCint)

     d htmlDocDumpMemoryFormat...
     d                 pr                  extproc('htmlDocDumpMemoryFormat')
     d  cur                                value like(xmlDocPtr)
     d  mem                            *   value                                xmlChar * *
     d  size                               like(xmlCint)
     d  format                             value like(xmlCint)

     d htmlDocDump     pr                  extproc('htmlDocDump')
     d                                     like(xmlCint)
     d  f                              *   value                                FILE *
     d  cur                                value like(xmlDocPtr)

     d htmlSaveFile    pr                  extproc('htmlSaveFile')
     d                                     like(xmlCint)
     d  filename                       *   value options(*string)               const char *
     d  cur                                value like(xmlDocPtr)

     d htmlNodeDump    pr                  extproc('htmlNodeDump')
     d                                     like(xmlCint)
     d  buf                                value like(xmlBufferPtr)
     d  doc                                value like(xmlDocPtr)
     d  cur                                value like(xmlNodePtr)

     d htmlNodeDumpFile...
     d                 pr                  extproc('htmlNodeDumpFile')
     d  out                            *   value                                FILE *
     d  doc                                value like(xmlDocPtr)
     d  cur                                value like(xmlNodePtr)

     d htmlNodeDumpFileFormat...
     d                 pr                  extproc('htmlNodeDumpFileFormat')
     d                                     like(xmlCint)
     d  out                            *   value                                FILE *
     d  doc                                value like(xmlDocPtr)
     d  cur                                value like(xmlNodePtr)
     d  encoding                       *   value options(*string)               const char *
     d  format                             value like(xmlCint)

     d htmlSaveFileEnc...
     d                 pr                  extproc('htmlSaveFileEnc')
     d                                     like(xmlCint)
     d  filename                       *   value options(*string)               const char *
     d  cur                                value like(xmlDocPtr)
     d  encoding                       *   value options(*string)               const char *

     d htmlSaveFileFormat...
     d                 pr                  extproc('htmlSaveFileFormat')
     d                                     like(xmlCint)
     d  filename                       *   value options(*string)               const char *
     d  cur                                value like(xmlDocPtr)
     d  encoding                       *   value options(*string)               const char *
     d  format                             value like(xmlCint)

     d htmlNodeDumpFormatOutput...
     d                 pr                  extproc('htmlNodeDumpFormatOutput')
     d  buf                                value like(xmlOutputBufferPtr)
     d  doc                                value like(xmlDocPtr)
     d  cur                                value like(xmlNodePtr)
     d  encoding                       *   value options(*string)               const char *
     d  format                             value like(xmlCint)

     d htmlDocContentDumpOutput...
     d                 pr                  extproc('htmlDocContentDumpOutput')
     d  buf                                value like(xmlOutputBufferPtr)
     d  cur                                value like(xmlDocPtr)
     d  encoding                       *   value options(*string)               const char *

     d htmlDocContentDumpFormatOutput...
     d                 pr                  extproc(
     d                                     'htmlDocContentDumpFormatOutput')
     d  buf                                value like(xmlOutputBufferPtr)
     d  cur                                value like(xmlDocPtr)
     d  encoding                       *   value options(*string)               const char *
     d  format                             value like(xmlCint)

     d htmlNodeDumpOutput...
     d                 pr                  extproc('htmlNodeDumpOutput')
     d  buf                                value like(xmlOutputBufferPtr)
     d  doc                                value like(xmlDocPtr)
     d  cur                                value like(xmlNodePtr)
     d  encoding                       *   value options(*string)               const char *

      /endif                                                                    LIBXML_OUTPUT_ENABLD

     d htmlIsBooleanAttr...
     d                 pr                  extproc('htmlIsBooleanAttr')
     d                                     like(xmlCint)
     d  name                           *   value options(*string)               const xmlChar *

      /endif                                                                    LIBXML_HTML_ENABLED
      /endif                                                                    HTML_TREE_H__