[Overview][Constants][Types][Classes][Procedures and functions][Index] Reference for unit 'Laz2_DOM' (#lazutils)

TDOMNode.CloneNode

Makes a copy of the DOM node.

Declaration

Source position: laz2_dom.pas line 285

public function TDOMNode.CloneNode(

  deep: Boolean

):TDOMNode; overload;

function TDOMNode.CloneNode(

  deep: Boolean;

  ACloneOwner: TDOMDocument

):TDOMNode; virtual; overload;

Arguments

deep

  

Indicates if child nodes are included in the cloned node.

Function result

DOM node created in the method.

Arguments

deep

  

Indicates if child nodes are included in the cloned node.

ACloneOwner

  

DOM Document used to created the new DOM Node.

Description

CloneNode is an overloaded TDOMNode function used to make a new copy of the current node. Deep indicates that child nodes are included in the new TDOMNode instance when set to True. An overloaded variant allows the DOM Document which owns the new node to be specified.

CloneNode always raises an EDOMNotSupported exception in TDOMNode, and the return value is always Nil. It must be overridden in a descendent class to perform any actions needed for the DOM node specialization.

See also

TDOMNode.OwnerDocument

  

DOM Document that created the DOM node.

TDOMDocument

  

Implements the DOM Document interface.

EDOMNotSupported

  

Exception raised when the DOM implementation does not support the requested object type or operation.


Version 3.2 Generated 2024-02-25 Home