XML_Tree::&addRoot

XML_Tree::&addRoot

XML_Tree::&addRoot -- add root node

Description

Adds a new root node to the XML datastructure.

Parameter

  • string $name - name of root element

  • string $content - data between the opening and closing tag

  • array $attributes - additional attributes for the tag. The attribute name is represented as the array key and the attribute value as entry for the key.

Return value

object XML_Tree_Node - reference to root node

Note

This function can not be called statically.

© Copyright 2003-2023 www.php-editors.com. The ultimate PHP Editor and PHP IDE site.