dhtmlXtree drag-and-drop

I’m making a web service call that returns an object that implements the XMLStreamReader (java) class. This stream contains the tree that I want to load (in order to display the tree). What do I need to do to load the contents of this stream into the tree (using the dhtmlXtree package)? If you can proivde and example, that would be great.

I’m not pretty sure which data contains response of webservice.
If it returns XML in format of dhtmlxTree you can fetch data directly by

In any other way you can retrieve and transform data in format of Tree, after which use tree.loadXMLString against XML string