I have created an xslt file to format xml file. My ewquirement is to show that xml in a tree format. That I have achieved. But, when I click on the root node, it will show all subnodes(which are by default expanded). I want all subnodes need to be collapsed by default on clicking of root node. Similarly, on clicking of subnode, it should be expanded with contents and subnodes of this node to be collapsed by default and so on.
How can I achieve this?
View Complete Post