standard.lib.xml.xmlAddSibling

xmlAddSibling is available since version 1.0.

Prototype:

number xmlAddSibling(number cur, number elem)

Parameters

cur
the sibling node
elem
the new node

Description:

Add a new element elem to the list of siblings of cur merging adjacent TEXT nodes (elem may be freed). If the new element was already inserted in a document it is first unlinked from its existing context.

Return value:

Returns the new node or null in case of error.