add the tree based xml