|
SYNOPSIS
xmlNode xmlTreeCopyNode(xmlDoc targetDoc, xmlNode node
[, int recursive])
Parameters:
Returns:
DESCRIPTION
xmlTreeCopyNode() makes a copy of node (and its children
if recursive is asserted). The newly-created copy is unlinked
and needs to be inserted into a tree, using things like
xmlTreeAddChild() or xmlTreeAddSibling().
If you know where the copy is going, you can specify the target
document with the targetDoc parameter to help optimize internal
string operations. Nothing will be broken if a different doc is
specified in targetDoc than the one it ends up in once it is
inserted.
EXAMPLE
<$newNode = (xmlTreeCopyNode(xmlTreeGetDoc($node), $node))>
SEE ALSO
xmlTreeCopyDoc,
xmlTreeCopyNodeList,
xmlTreeCopyAttribute,
xmlTreeCopyAttributeList
Copyright © Thunderstone Software Last updated: Mon Feb 18 10:28:15 EST 2013
|