Skip to main content

new_entity

Function new_entity 

Source
pub unsafe fn new_entity(
    _doc: *mut _xmlDoc,
    name: *const xmlChar,
    etype: c_int,
    ExternalID: *const xmlChar,
    SystemID: *const xmlChar,
    content: *const xmlChar,
) -> *mut _xmlEntity
Expand description

Create a new entity.

§UPSTREAM-PARITY

xmlEntityPtr xmlNewEntity(xmlDocPtr doc, const xmlChar *name, int type,
                          const xmlChar *ExternalID, const xmlChar *SystemID,
                          const xmlChar *content);

§SAFETY

  • doc may be NULL.
  • name must be a valid null-terminated string.
  • ExternalID, SystemID, content may be NULL.