Userdata problem

How to put userdata when the tree is loaded via XML and the item id DOES NOT HAVE child items.

Please, see this sample:
dhtmlx.com/docs/products/dht … data.html#

You need to put your UD between item tag: