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

Function xmlDocCopyNode

ThirdParty/libxml2/vtklibxml2/tree.c:4502–4508  ·  view source on GitHub ↗

* xmlDocCopyNode: * @node: the node * @doc: the document * @extended: if 1 do a recursive copy (properties, namespaces and children * when applicable) * if 2 copy properties and namespaces (when applicable) * * Copy a node into another document. * * Returns the copied node or NULL if a memory allocation failed. */

Source from the content-addressed store, hash-verified

4500 * Returns the copied node or NULL if a memory allocation failed.
4501 */
4502xmlNodePtr
4503xmlDocCopyNode(xmlNodePtr node, xmlDocPtr doc, int extended) {
4504 xmlNodePtr ret;
4505
4506 ret = xmlStaticCopyNode(node, doc, NULL, extended);
4507 return(ret);
4508}
4509
4510/**
4511 * xmlDocCopyNodeList:

Callers 5

xmlXPathObjectCopyFunction · 0.85
xmlTextReaderDumpCopyFunction · 0.85
xmlParseReferenceFunction · 0.85
xmlXIncludeCopyRangeFunction · 0.85
xmlXIncludeLoadDocFunction · 0.85

Calls 1

xmlStaticCopyNodeFunction · 0.85

Tested by

no test coverage detected