I populate a tree with XML. Is there a way to change the icons of the childs?

Accessories is a main group, it should have a folder icon, but i want something else for the childs forther if there is another group so if the child is not a leaf it should still keep the folder icon.
I just have to use
icon=''in thenametag.