Skip to main content

free_node_list

Function free_node_list 

Source
pub unsafe fn free_node_list(node: *mut _xmlNode)
Expand description

Free a linked list of nodes.

Frees all nodes in the list and their children recursively.

§UPSTREAM-PARITY

void xmlFreeNodeList(xmlNodePtr node);

Does NOT descend into XML_ENTITY_REF_NODE children (their child list points at the shared entity declaration, owned by the DTD) nor free XML_DTD_NODE children (a DTD node in the list is unlinked, not freed — xmlFreeDtd owns the subset teardown).

§SAFETY

  • node must be a valid pointer to an _xmlNode, or NULL.