MCPcopy Create free account
hub / github.com/Kitware/VTK / xmlCopyNode

Function xmlCopyNode

ThirdParty/libxml2/vtklibxml2/tree.c:4482–4488  ·  view source on GitHub ↗

* xmlCopyNode: * @node: the node * @extended: if 1 do a recursive copy (properties, namespaces and children * when applicable) * if 2 copy properties and namespaces (when applicable) * * Copy a node. * * Use of this function is DISCOURAGED in favor of xmlDocCopyNode. * * Returns the copied node or NULL if a memory allocation failed. */

Source from the content-addressed store, hash-verified

4480 * Returns the copied node or NULL if a memory allocation failed.
4481 */
4482xmlNodePtr
4483xmlCopyNode(xmlNodePtr node, int extended) {
4484 xmlNodePtr ret;
4485
4486 ret = xmlStaticCopyNode(node, NULL, NULL, extended);
4487 return(ret);
4488}
4489
4490/**
4491 * xmlDocCopyNode:

Callers 4

setXMLNodeMethod · 0.85
xmlCopyDtdFunction · 0.85
xmlXPtrBuildNodeListFunction · 0.85

Calls 1

xmlStaticCopyNodeFunction · 0.85

Tested by

no test coverage detected