adds compatibility attributes to iid_tree element

This is necessary in order not to produce invalid XML output, if all the nodes (thus the root node as well) are selected or disabled.