Hello,
Could you please try the following:
1. Generete your request and save the result in xml file.
2. Call the tree grid with this generated file i.e in url set this file.
I have a feeling that something is wrong in your generated code.
Also to be a clear when we set the tree grid we do not use any recursion.
Regards
Tony