How to refresh item from a js function returns XML?

the setXMLAutoLoading(filepath) function can only load data from server side? Is it possible to auto load from a client js function which returns a XML string?

Yes, it is possible.

Any samples?

Are you using PRO version? It is possible only in PRO.

tree.setXMLAutoLoadingBehavior("function"); tree.setXMLAutoLoading(function(id){ //your code })