TDOMNode_WithChildren.CloneChildren procedure
Makes a copy of child nodes in the specified DOM node.
Declaration
procedure CloneChildren(ACopy: TDOMNode; ACloneOwner: TDOMDocument)Arguments
ACopy | DOM Node which receives the cloned child nodes. |
ACloneOwner | DOM Document used to create the cloned child nodes. |
Description
CloneChildren is a method used to clone child nodes from the
current class instance to DOM node specified in
ACopy.
CloneChildren visits each of the child nodes, starting at
FirstChild and continuing to the value in the
NextSibling property for the child node. The CloneNode
method for each child node is called make a new copy (including its children)
that is owned by the document in ACloneOwner. The cloned node is
added to ACopy using the InternalAppend method.
No actions are performed in the method when the FirstChild property has not been assigned in the class instance.
See also
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
