Skip to main content

copy_node

Function copy_node 

Source
pub unsafe fn copy_node(
    node: *const _xmlNode,
    recursive: c_int,
) -> *mut _xmlNode
Expand description

Copy a node (shallow or deep).

§UPSTREAM-PARITY

xmlNodePtr xmlCopyNode(xmlNodePtr node, int recursive);

If recursive is 1, children are also copied. Returns the new node, or NULL on failure.

§SAFETY

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