* 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. */
| 4480 | * Returns the copied node or NULL if a memory allocation failed. |
| 4481 | */ |
| 4482 | xmlNodePtr |
| 4483 | xmlCopyNode(xmlNodePtr node, int extended) { |
| 4484 | xmlNodePtr ret; |
| 4485 | |
| 4486 | ret = xmlStaticCopyNode(node, NULL, NULL, extended); |
| 4487 | return(ret); |
| 4488 | } |
| 4489 | |
| 4490 | /** |
| 4491 | * xmlDocCopyNode: |
no test coverage detected