insertBefore
Description
Add a new child to this node, before the referenced node.
If you want to insert a new child after the referenced node, use .insertBefore(newChild, refChild.getNextSibling()). If there is no next sibling, the getNextSibling function will return null, and the insertBefore function will append.
Arguments
Return Value
XopusNode. The inserted node or null if the insertion was cancelled.