Skip to main content

unlink_node

Function unlink_node 

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

Unlink a node from its parent/siblings.

§UPSTREAM-PARITY

void xmlUnlinkNode(xmlNodePtr node);

Removes the node from its parent’s child list and sibling list. The node’s parent, prev, and next pointers are cleared. The node is NOT freed — the caller is responsible for freeing it.

§SAFETY

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