Lines Matching full:entity
93 * xmlFreeEntity : clean-up an entity record.
96 xmlFreeEntity(xmlEntityPtr entity)
100 if (entity == NULL)
103 if (entity->doc != NULL)
104 dict = entity->doc->dict;
107 if ((entity->children) && (entity->owner == 1) &&
108 (entity == (xmlEntityPtr) entity->children->parent))
109 xmlFreeNodeList(entity->children);
111 if ((entity->name != NULL) && (!xmlDictOwns(dict, entity->name)))
112 xmlFree((char *) entity->name);
113 if ((entity->ExternalID != NULL) &&
114 (!xmlDictOwns(dict, entity->ExternalID)))
115 xmlFree((char *) entity->ExternalID);
116 if ((entity->SystemID != NULL) &&
117 (!xmlDictOwns(dict, entity->SystemID)))
118 xmlFree((char *) entity->SystemID);
119 if ((entity->URI != NULL) && (!xmlDictOwns(dict, entity->URI)))
120 xmlFree((char *) entity->URI);
121 if ((entity->content != NULL)
122 && (!xmlDictOwns(dict, entity->content)))
123 xmlFree((char *) entity->content);
124 if ((entity->orig != NULL) && (!xmlDictOwns(dict, entity->orig)))
125 xmlFree((char *) entity->orig);
127 if (entity->name != NULL)
128 xmlFree((char *) entity->name);
129 if (entity->ExternalID != NULL)
130 xmlFree((char *) entity->ExternalID);
131 if (entity->SystemID != NULL)
132 xmlFree((char *) entity->SystemID);
133 if (entity->URI != NULL)
134 xmlFree((char *) entity->URI);
135 if (entity->content != NULL)
136 xmlFree((char *) entity->content);
137 if (entity->orig != NULL)
138 xmlFree((char *) entity->orig);
140 xmlFree(entity);
146 * internal routine doing the entity node strutures allocations
192 the defining entity */
200 * xmlAddEntity : register a new entity for an entities table.
243 * entity was already defined at another level.
253 * @name: the entity name
255 * Check whether this name is an predefined entity.
257 * Returns NULL if not, otherwise the entity
290 * @name: the entity name
291 * @type: the entity type XML_xxx_yyy_ENTITY
292 * @ExternalID: the entity external ID if available
293 * @SystemID: the entity system ID if available
294 * @content: the entity content
296 * Register a new entity for this document DTD external subset.
298 * Returns a pointer to the entity or NULL in case of error
339 * @name: the entity name
340 * @type: the entity type XML_xxx_yyy_ENTITY
341 * @ExternalID: the entity external ID if available
342 * @SystemID: the entity system ID if available
343 * @content: the entity content
345 * Register a new entity for this document.
347 * Returns a pointer to the entity or NULL in case of error
388 * @name: the entity name
389 * @type: the entity type XML_xxx_yyy_ENTITY
390 * @ExternalID: the entity external ID if available
391 * @SystemID: the entity system ID if available
392 * @content: the entity content
394 * Create a new entity, this differs from xmlAddDocEntity() that if
396 * unlinked entity structure will be returned, it is then the responsability
400 * Returns a pointer to the entity or NULL in case of error
425 * @table: an entity table
426 * @name: the entity name
429 * Do an entity lookup in the table.
430 * returns the corresponding parameter entity, if found.
432 * Returns A pointer to the entity structure or NULL if not found.
441 * @doc: the document referencing the entity
442 * @name: the entity name
444 * Do an entity lookup in the internal and external subsets and
445 * returns the corresponding parameter entity, if found.
447 * Returns A pointer to the entity structure or NULL if not found.
471 * @doc: the document referencing the entity
472 * @name: the entity name
474 * Do an entity lookup in the DTD entity hash table and
475 * returns the corresponding entity, if found.
478 * Returns A pointer to the entity structure or NULL if not found.
495 * @doc: the document referencing the entity
496 * @name: the entity name
498 * Do an entity lookup in the document entity hash table and
499 * returns the corresponding entity, otherwise a lookup is done
502 * Returns A pointer to the entity structure or NULL if not found.
877 * @entity: An entity
883 xmlFreeEntityWrapper(xmlEntityPtr entity,
885 if (entity != NULL)
886 xmlFreeEntity(entity);
891 * @table: An entity table
903 * @ent: An entity
905 * Build a copy of an entity
939 * @table: An entity table
941 * Build a copy of an entity table.
956 * @content: The entity content.
997 * @ent: An entity table
999 * This will dump the content of the entity table as an XML DTD definition
1006 xmlBufferWriteChar(buf, "<!ENTITY ");
1016 xmlBufferWriteChar(buf, "<!ENTITY ");
1030 xmlBufferWriteChar(buf, "<!ENTITY ");
1051 xmlBufferWriteChar(buf, "<!ENTITY % ");
1061 xmlBufferWriteChar(buf, "<!ENTITY % ");
1076 "xmlDumpEntitiesDecl: internal: unknown type entity type");
1082 * @ent: An entity table
1095 * @table: An entity table
1097 * This will dump the content of the entity table as an XML DTD definition