Excellent, thanks Sworthy.
May I use
node.attributes to store the string for the tooltip when I create the tree with an array ?
Then I use your code modified
return '<span title="' + node.attributes+ '">' + node.text+ '</span>';
Question: can node.attributes store an array to store many informations on a branch of the tree ?