I am using the [jsTree jquery plugin](http://jstree.com) 

I am trying to fetch all the nodes and sub nodes of a selected parent. But somehow it's not working unless I use recursion. Is there a better way inherent to jsTree?