Hi Jang,
This is the only way I've found do to it; that is, step through the entire tree and look at elements individually. It may just be that the granular nature of the API expects us to write routines like this ourselves, if we want there to be an easier way (at least after the first time!).
Russ