Lines Matching full:entity
91 * xmlFreeEntity : clean-up an entity record.
94 xmlFreeEntity(xmlEntityPtr entity)
98 if (entity == NULL)
101 if (entity->doc != NULL)
102 dict = entity->doc->dict;
105 if ((entity->children) && (entity->owner == 1) &&
106 (entity == (xmlEntityPtr) entity->children->parent))
107 xmlFreeNodeList(entity->children);
109 if ((entity->name != NULL) && (!xmlDictOwns(dict, entity->name)))
110 xmlFree((char *) entity->name);
111 if ((entity->ExternalID != NULL) &&
112 (!xmlDictOwns(dict, entity->ExternalID)))
113 xmlFree((char *) entity->ExternalID);
114 if ((entity->SystemID != NULL) &&
115 (!xmlDictOwns(dict, entity->SystemID)))
116 xmlFree((char *) entity->SystemID);
117 if ((entity->URI != NULL) && (!xmlDictOwns(dict, entity->URI)))
118 xmlFree((char *) entity->URI);
119 if ((entity->content != NULL)
120 && (!xmlDictOwns(dict, entity->content)))
121 xmlFree((char *) entity->content);
122 if ((entity->orig != NULL) && (!xmlDictOwns(dict, entity->orig)))
123 xmlFree((char *) entity->orig);
125 if (entity->name != NULL)
126 xmlFree((char *) entity->name);
127 if (entity->ExternalID != NULL)
128 xmlFree((char *) entity->ExternalID);
129 if (entity->SystemID != NULL)
130 xmlFree((char *) entity->SystemID);
131 if (entity->URI != NULL)
132 xmlFree((char *) entity->URI);
133 if (entity->content != NULL)
134 xmlFree((char *) entity->content);
135 if (entity->orig != NULL)
136 xmlFree((char *) entity->orig);
138 xmlFree(entity);
144 * internal routine doing the entity node strutures allocations
190 the defining entity */
198 * xmlAddEntity : register a new entity for an entities table.
241 * entity was already defined at another level.
251 * @name: the entity name
253 * Check whether this name is an predefined entity.
255 * Returns NULL if not, otherwise the entity
288 * @name: the entity name
289 * @type: the entity type XML_xxx_yyy_ENTITY
290 * @ExternalID: the entity external ID if available
291 * @SystemID: the entity system ID if available
292 * @content: the entity content
294 * Register a new entity for this document DTD external subset.
296 * Returns a pointer to the entity or NULL in case of error
337 * @name: the entity name
338 * @type: the entity type XML_xxx_yyy_ENTITY
339 * @ExternalID: the entity external ID if available
340 * @SystemID: the entity system ID if available
341 * @content: the entity content
343 * Register a new entity for this document.
345 * Returns a pointer to the entity or NULL in case of error
386 * @name: the entity name
387 * @type: the entity type XML_xxx_yyy_ENTITY
388 * @ExternalID: the entity external ID if available
389 * @SystemID: the entity system ID if available
390 * @content: the entity content
392 * Create a new entity, this differs from xmlAddDocEntity() that if
394 * unlinked entity structure will be returned, it is then the responsability
398 * Returns a pointer to the entity or NULL in case of error
423 * @table: an entity table
424 * @name: the entity name
427 * Do an entity lookup in the table.
428 * returns the corresponding parameter entity, if found.
430 * Returns A pointer to the entity structure or NULL if not found.
439 * @doc: the document referencing the entity
440 * @name: the entity name
442 * Do an entity lookup in the internal and external subsets and
443 * returns the corresponding parameter entity, if found.
445 * Returns A pointer to the entity structure or NULL if not found.
469 * @doc: the document referencing the entity
470 * @name: the entity name
472 * Do an entity lookup in the DTD entity hash table and
473 * returns the corresponding entity, if found.
476 * Returns A pointer to the entity structure or NULL if not found.
493 * @doc: the document referencing the entity
494 * @name: the entity name
496 * Do an entity lookup in the document entity hash table and
497 * returns the corresponding entity, otherwise a lookup is done
500 * Returns A pointer to the entity structure or NULL if not found.
794 * @entity: An entity
800 xmlFreeEntityWrapper(xmlEntityPtr entity,
802 if (entity != NULL)
803 xmlFreeEntity(entity);
808 * @table: An entity table
820 * @ent: An entity
822 * Build a copy of an entity
856 * @table: An entity table
858 * Build a copy of an entity table.
873 * @content: The entity content.
914 * @ent: An entity table
916 * This will dump the content of the entity table as an XML DTD definition
923 xmlBufferWriteChar(buf, "<!ENTITY ");
933 xmlBufferWriteChar(buf, "<!ENTITY ");
947 xmlBufferWriteChar(buf, "<!ENTITY ");
968 xmlBufferWriteChar(buf, "<!ENTITY % ");
978 xmlBufferWriteChar(buf, "<!ENTITY % ");
993 "xmlDumpEntitiesDecl: internal: unknown type entity type");
999 * @ent: An entity table
1012 * @table: An entity table
1014 * This will dump the content of the entity table as an XML DTD definition