Skip to main content

get_entity

Function get_entity 

Source
pub unsafe fn get_entity(
    doc: *mut _xmlDoc,
    name: *const xmlChar,
) -> *mut _xmlEntity
Expand description

Get a general entity by name.

§UPSTREAM-PARITY

xmlEntityPtr xmlGetEntity(xmlDocPtr doc, const xmlChar *name);

Searches the document’s DTD for a general entity with the given name. Checks both internal and external subsets.

§SAFETY

  • doc must be a valid pointer to an _xmlDoc, or NULL.
  • name must be a valid null-terminated string.