Skip to main content

add_doc_entity

Function add_doc_entity 

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

Add an entity declaration to the document’s internal subset (upstream entities.c xmlAddDocEntity); creates the internal subset when absent.

§SAFETY

  • doc must be a valid document pointer or NULL.
  • name must be a valid null-terminated string.