U-X > XML.insertBefore

 

XML.insertBefore

Availability

Flash Player 5.

Usage

myXML.insertBefore(childNode, beforeNode)

Parameters

childNode The node to be inserted.

beforeNode The node before the insertion point for the childNode.

Returns

Nothing.

Description

Method; inserts a new child node into the XML object's child list, before the beforeNode node. If the beforeNode parameter is undefined or null, the node is added using appendChild. If beforeNode is not a child of myXML, the insert fails.