# XML.insertBefore()

#### Availability

Flash Player 5.

#### Usage

    my_xml.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 `my_xml`, the insert fails.