dhtmlxTree, dhtmlXTreeFromHTML and getUserData

Hi,



I have created a dhtmlxTree from an existing php class which returns my menu as a series of nested unordered lists:





  • menu 1



    • sub item 1


    • sub item 1


    • sub item 1


    • sub item 1






  • menu 2 etc…



    Is it possible to include userdata to be returned with the getUserData() method (such as href and class) with this approach by including a tag(s) in my HTML? I have had a look in the reference section and can not find a way to do this without rewriting my php.



Unfortunately, when initialized from HTML, tree can’t parse any extra data except of item’s text.