NlsTree Professional supports XML input/output. You can load tree from XML file or string.

 Expand All Collapse All

The tree on the left is generated from an XML file. Click here to view the XML file.

To load tree from XML file:

var tree = new NlsTree("tree");
tree.loadFromXMLFile(file_path);
tree.render();


It is also possible to load tree from XML string as shown in example below. Select a node and then click on "Add to Selected Node" button.



To add nodes to tree using XML:

tree.addNodesXMLString('parent node id', xml, reload=true/false);