how to get nodes of exact level in a tree?

and how to get text of one node? thank you to your reply

You can get IDs of child-items as
    var list=tree.getSubItems(); // comma separated list of IDs

To get tree label by ID
    var text = tree.getItemText(id);