when ever we are adding any new nodes to tree it is not reflecting in xml .how can we make changes to xml when ever we are adding new folders

The tree uses XML for loading only, because component is fully client side it can’t apply modification to real xml file on server, but you can get current state of tree as XML through serialization

var xml = tree.serializeTree();