This example requires an actual webserver - it will not work with local files.
This page demonstrates dynamic XML loading. Click the 'load xml' button at the bottom of the page to load 'example.xml' under the currently selected node. Note that loading an XML document into a node clears the current contents of that node.
Please examine the XML file. The attributes 'text', 'icon', 'openicon', 'color' and 'open' are used for the MooTreeNode constructor for each node - any other additional attributes (such as 'alert' in one of the nodes in this example) are added to the node's 'data' object, including the special attribute 'load'. The 'load' attribute (optionally) specifies another XML file to load when the node is expanded.