Skip to main content

xmlXPathNodeSetFreeNs

Function xmlXPathNodeSetFreeNs 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn xmlXPathNodeSetFreeNs(ns: *mut _xmlNs)
Expand description

void xmlXPathNodeSetFreeNs(xmlNsPtr ns) — releases a synthesized namespace node (upstream xpath.c xmlXPathNodeSetFreeNs).

UPSTREAM-PARITY: an XPath node-set that contains namespace nodes holds synthesized copies whose next field points at the owner element (not at another namespace declaration). Such nodes are freed here along with their href/prefix; real namespace declarations (owned by the tree) are left untouched.

§SAFETY

  • ns must be a valid namespace pointer or NULL.