object XML_Tree_Node XML_Tree::&insertChild (
array $path
,
integer $pos
,
mixed $child
,
string $content=''
,
array $attributes=array()
)
Inserts a child or tree into the tree in the path
$path on position $pos
and maintains namespace integrity
array $path -
path to parent of child to insert
integer $pos -
position of child to be inserted in its parent's children-list
mixed $child -
child-node (by XML_Tree,
XML_Node or Name)
string $content -
content (text) for new node
array $attributes -
attribute-hash for new node
object XML_Tree_Node - inserted child (node)
This function can not be called statically.