XML_Tree::&addRoot (Previous) (Next) XML_Tree::&removeChild

View this page in Last updated: Sun, 28 Sep 2008
English | Dutch | French | German | Hungarian | Japanese | Polish | Russian | Spanish | Plain HTML

XML_Tree::&insertChild

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

Description

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

Parameter

  • 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

Return value

object XML_Tree_Node - inserted child (node)

Note

This function can not be called statically.

XML_Tree::&addRoot (Previous) (Next) XML_Tree::&removeChild

Download Documentation Last updated: Sun, 28 Sep 2008
Do you think that something on this page is wrong? Please file a bug report or add a note.
User Notes:
There are no user contributed notes for this page.