From 35a201cc8ef0c3f5b2df88d2e528aabee1048348 Mon Sep 17 00:00:00 2001 From: Wojtek Kosior Date: Fri, 30 Apr 2021 18:47:09 +0200 Subject: Initial/Final commit --- libxml2-2.9.10/os400/libxmlrpg/HTMLtree.rpgle | 176 ++++++++++++++++++++++++++ 1 file changed, 176 insertions(+) create mode 100644 libxml2-2.9.10/os400/libxmlrpg/HTMLtree.rpgle (limited to 'libxml2-2.9.10/os400/libxmlrpg/HTMLtree.rpgle') diff --git a/libxml2-2.9.10/os400/libxmlrpg/HTMLtree.rpgle b/libxml2-2.9.10/os400/libxmlrpg/HTMLtree.rpgle new file mode 100644 index 0000000..99c38a0 --- /dev/null +++ b/libxml2-2.9.10/os400/libxmlrpg/HTMLtree.rpgle @@ -0,0 +1,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 , 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__ -- cgit v1.2.3