All Classes |Grouped Classes |Index

Function insert_before

Inserts the node new_child before the existing child node ref_child.

	CL_DomNode CL_DomNode::insert_before(
		CL_DomNode & new_child,
		CL_DomNode & ref_child);

Detailed description:

If refChild is a null node, inserts new_child at the end of the list of children.

If newChild is a DocumentFragment object, all of its children are inserted, in the same order, before ref_child. If the new_child is already in the tree, it is first removed.