* xmlAddDocEntity: * @doc: the document * @name: the entity name * @type: the entity type XML_xxx_yyy_ENTITY * @ExternalID: the entity external ID if available * @SystemID: the entity system ID if available * @content: the entity content * * Register a new entity for this document. * * Returns a pointer to the entity or NULL in case of error */
| 368 | * Returns a pointer to the entity or NULL in case of error |
| 369 | */ |
| 370 | xmlEntityPtr |
| 371 | xmlAddDocEntity(xmlDocPtr doc, const xmlChar *name, int type, |
| 372 | const xmlChar *ExternalID, const xmlChar *SystemID, |
| 373 | const xmlChar *content) { |
| 374 | xmlEntityPtr ret; |
| 375 | |
| 376 | xmlAddEntity(doc, 0, name, type, ExternalID, SystemID, content, &ret); |
| 377 | return(ret); |
| 378 | } |
| 379 | |
| 380 | /** |
| 381 | * xmlNewEntity: |
no test coverage detected