Search
Plugins > XML 5.5.1 > XMLElement > insertBefore

Method insertBefore(XMLNode newNode, XMLNode refNode)

Inserts the node newChild before the existing child node refChild. If refChild is null, insert newChild at the end of the list of children. If the newChild is already in the tree, it is first removed.

Returns

void

Arguments

Name Type Description
newNode XMLNode Node to insert
refNode XMLNode Reference node