Loading TreeGrid from Web Service

I have a web service that I want to display in a tree grid. What is the best approach to use? Do you have any code samples?



Also, I tried loadXMLString but this does not seem to work.



Alternately, can I load a treegrid from a string or from a jsarray?



Also, I tried loadXMLString but this does not seem to work.
This functionality is a part of pro version only.
TreeGrid can be loaded from XML or JSON formats ( js-array not supported ) , both from local string or remote URL.

There is no separate sample for loading TreeGrid from XML , except of XML format it is the same as for plain grid ( please inform if you still need a sample )
dhtmlx.com/docs/products/dhtmlxG … 6598738000

What is the best approach to use?
You can use custom code ( dhtmlxAjax or similar ) to fetch data from web-service, convert it to necessary format and load in grid
or
You can construct your own data parser , to use output of web-service directly.
dhtmlx.com/docs/products/dhtmlxG … tloadtypes