XML_Tree::&insertChild

XML_Tree::&insertChild -- inserts a child/tree

Synopsis

require_once "XML/Tree.php";

object XML_Tree_Node XML_Tree::&insertChild (array $path, integer $pos, mixed $child [, string $content='' [, array $attributes=array()]])

Description

Inserts a child or tree into the tree in the path $path on position $pos and maintains namespace integrity

Parameter

Return value

object XML_Tree_Node - inserted child (node)

Note

This function can not be called statically.

See

XML_Tree::removeChild()