Is there a way to specify in the xml file that a item can o

Is there a way to
specify in the xml file that a item can or can not have children ?

It is not possible, you can
lock item, but it will block ANY functionality for it, not only adding children