ReplaceChild (NotesDOMNode - LotusScript®)

Replaces the specified oldChild node with the newChild node in the list of children, and returns the oldChild node.

Defined in

NotesDOMNode

Syntax

Set notesDOMNode = notesDOMNode .ReplaceChild( newChild , oldChild )

Parameters

newChild

NotesDOMNode. The node to put in the child list. This object and the calling object must be derived from the same NotesDOMParser object.

oldChild

NotesDOMNode. The node being replaced in the list. This object and the calling object must be derived from the same NotesDOMParser object.

Usage

The method fails if the nodes are not of the same type. For example, you cannot replace TEXT node with an ELEMENT node.

Return value

notesDOMNode

The replaced node.