PEAR Manual
Prev |  | Next

# XML_Tree::&removeChild

XML_Tree::&removeChild -- remove child from tree

## Synopsis

    require_once "XML/Tree.php";

``object XML_Tree_Node XML_Tree::&removeChild` (array $path, integer $pos)`

## Description

Removes a child (`$path`,`$pos`) from tree and maintains namespace integrity

## Parameter

- `array $path` - path to parent of child to remove

- `integer $pos` - position of child in parents children-list

## Return value

`object XML_Tree_Node` - parent whichs child was removed

## Note

This function can not be called statically.

## See

XML_Tree::insertChild()

Prev | Home | Next
XML_Tree::&insertChild | Up | XML_Tree::&getTreeFromFile