Documentation Center

insertNear

Description

Convenience method that searches for a valid insert position for a given node and inserts it there.

Syntax

XopusElement.insertNear (newChild : XopusNode, refChild : XopusNode) : XopusNode

Arguments

newChild
XopusNode. The node to insert.
refChild
XopusNode. The node to insert the child close to.

Return Value

XopusNode. The inserted node or null if the insertion was cancelled.