Skip to main content

xmlCopyNode

Function xmlCopyNode 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn xmlCopyNode( node: *const _xmlNode, extended: c_int, ) -> *mut _xmlNode
Expand description

Copy a node.

ยงUPSTREAM-PARITY

xmlNodePtr xmlCopyNode(const xmlNodePtr node, int extended);

If extended is 1, copies recursively (deep copy). If extended is 0, copies only the node itself (shallow copy).

Returns a newly allocated copy. Caller must free with xmlFreeNode.