prepare treeview for XPath