XML_Tree::&addRoot

XML_Tree::&addRoot -- add root node

Synopsis

require_once "XML/Tree.php";

object XML_Tree_Node XML_Tree::&addRoot (string $name [, string $content='' [, array $attributes=array()]])

Description

Adds a new root node to the XML datastructure.

Parameter

Return value

object XML_Tree_Node - reference to root node

Note

This function can not be called statically.

Example