1 * Summary: interface for the XML entities handling
2 * Description: this module provides some of the entity API needed
3 * for the parser and applications.
5 * Copy: See Copyright for the status of this software.
7 * Author: Patrick Monnerat <pm@datasphere.ch>, DATASPHERE S.A.
9 /if not defined(XML_ENTITIES_H__)
10 /define XML_ENTITIES_H__
12 /include "libxmlrpg/xmlversion"
13 /include "libxmlrpg/tree"
15 * The different valid entity types.
17 d xmlEntityType s 10i 0 based(######typedef######) enum
18 d XML_INTERNAL_GENERAL_ENTITY...
20 d XML_EXTERNAL_GENERAL_PARSED_ENTITY...
22 d XML_EXTERNAL_GENERAL_UNPARSED_ENTITY...
24 d XML_INTERNAL_PARAMETER_ENTITY...
26 d XML_EXTERNAL_PARAMETER_ENTITY...
28 d XML_INTERNAL_PREDEFINED_ENTITY...
31 * An unit of storage for an entity, contains the string, the value
32 * and the linkind data needed for the linking in the hash table.
34 d xmlEntity ds based(xmlEntityPtr)
37 d type like(xmlElementType) XML_ENTITY_DECL
38 d name * const xmlChar *
39 d children like(xmlNodePtr) First child link
40 d last like(xmlNodePtr) Last child link
41 d parent like(xmlDtdPtr) -> DTD
42 d next like(xmlNodePtr) next sibling link
43 d prev like(xmlNodePtr) prev sibling link
44 d doc like(xmlDocPtr) containing document
47 d length 10i 0 content length
48 d etype like(xmlEntityType) The entity type
49 d ExternalID * const xmlChar *
50 d SystemlID * const xmlChar *
51 d nexte like(xmlEntityPtr) unused
52 d URI * const xmlChar *
53 d owner 10i 0 Owns children ?
54 d checked 10i 0 Content checked ?
56 * All entities are stored in an hash table.
57 * There is 2 separate hash tables for global and parameter entities.
59 d xmlEntitiesTablePtr...
60 d s * based(######typedef######)
64 /if defined(LIBXML_LEGACY_ENABLED)
65 d xmlInitializePredefinedEntities...
67 d 'xmlInitializePredefinedEntities')
68 /endif LIBXML_LEGACY_ENABLD
70 d xmlNewEntity pr extproc('xmlNewEntity')
72 d doc value like(xmlDocPtr)
73 d name * value options(*string) const xmlChar *
75 d ExternalID * value options(*string) const xmlChar *
76 d SystemID * value options(*string) const xmlChar *
77 d content * value options(*string) const xmlChar *
80 d pr extproc('xmlAddDocEntity')
82 d doc value like(xmlDocPtr)
83 d name * value options(*string) const xmlChar *
85 d ExternalID * value options(*string) const xmlChar *
86 d SystemID * value options(*string) const xmlChar *
87 d content * value options(*string) const xmlChar *
90 d pr extproc('xmlAddDtdEntity')
92 d doc value like(xmlDocPtr)
93 d name * value options(*string) const xmlChar *
95 d ExternalID * value options(*string) const xmlChar *
96 d SystemID * value options(*string) const xmlChar *
97 d content * value options(*string) const xmlChar *
99 d xmlGetPredefinedEntity...
100 d pr extproc('xmlGetPredefinedEntity')
102 d name * value options(*string) const xmlChar *
105 d pr extproc('xmlGetDocEntity')
107 d doc value like(xmlDocPtr)
108 d name * value options(*string) const xmlChar *
111 d pr extproc('xmlGetDtdEntity')
113 d doc value like(xmlDocPtr)
114 d name * value options(*string) const xmlChar *
116 d xmlGetParameterEntity...
117 d pr extproc('xmlGetParameterEntity')
119 d doc value like(xmlDocPtr)
120 d name * value options(*string) const xmlChar *
123 /if defined(LIBXML_LEGACY_ENABLED)
124 d xmlEncodeEntities...
125 d pr * extproc('xmlEncodeEntities') xmlChar *
126 d doc value like(xmlDocPtr)
127 d input * value options(*string) const xmlChar *
128 /endif LIBXML_LEGACY_ENABLD
130 d xmlEncodeEntitiesReentrant...
131 d pr * extproc( xmlChar *
132 d 'xmlEncodeEntitiesReentrant')
133 d doc value like(xmlDocPtr)
134 d input * value options(*string) const xmlChar *
136 d xmlEncodeSpecialChars...
137 d pr * extproc('xmlSpecialChars') xmlChar *
138 d doc value like(xmlDocPtr)
139 d input * value options(*string) const xmlChar *
141 d xmlCreateEntitiesTable...
142 d pr extproc('xmlCreateEntitiesTable')
143 d like(xmlEntitiesTablePtr)
145 /if defined(LIBXML_TREE_ENABLED)
146 d xmlCopyEntitiesTable...
147 d pr extproc('xmlCopyEntitiesTable')
148 d like(xmlEntitiesTablePtr)
149 d table value like(xmlEntitiesTablePtr)
150 /endif LIBXML_TREE_ENABLED
152 d xmlFreeEntitiesTable...
153 d pr extproc('xmlFreeEntitiesTable')
154 d table value like(xmlEntitiesTablePtr)
156 /if defined(LIBXML_OUTPUT_ENABLED)
157 d xmlDumpEntitiesTable...
158 d pr extproc('xmlDumpEntitiesTable')
159 d buf value like(xmlBufferPtr)
160 d table value like(xmlEntitiesTablePtr)
162 d xmlDumpEntityDecl...
163 d pr extproc('xmlDumpEntityDecl')
164 d buf value like(xmlBufferPtr)
165 d ent value like(xmlEntityPtr)
166 /endif LIBXML_OUTPUT_ENABLD
168 /if defined(LIBXML_LEGACY_ENABLED)
169 d xmlCleanupPredefinedEntities...
171 XMLPUd 'xmlCleanupPredefinedEntities')
172 /endif LIBXML_LEGACY_ENABLD
174 /endif XML_ENTITIES_H__