Import method for creating
HTML_TreeMenu objects/structures out of existing tree objects/structures.
Currently supported are Wolfram Kriesings' PEAR Tree class, and Richard Heyes' Tree class (http://www.phpguru.org/). This method is intended to be used statically, eg:
Parameters:
Creates a treeMenu from XML.
The structure of your XML should be like so: <treemenu>
<node text="First node" icon="folder.gif"
expandedIcon="folder-expanded.gif" />
<node text="Second node" icon="folder.gif"
expandedIcon="folder-expanded.gif">
<node text="Sub node" icon="folder.gif"
expandedIcon="folder-expanded.gif" />
</node>
<node text="Third node" icon="folder.gif"
expandedIcon="folder-expanded.gif">
</treemenu>
Any of the options you can supply to the HTML_TreeNode constructor can be supplied as attributes to the <node> tag. If there are no subnodes for a particular node, you can use the XML shortcut <node ... /> instead of <node ... ></node>. The $xml argument can be either the XML as a string, or an pre-created XML_Tree object. Also, this method REQUIRES my own Tree class to work (http://www.phpguru.org/static/tree.html). If this has not been include()ed or require()ed this method will die().
Parameters: