Your callback can check the ID of the node at which it is being called. The ID of the root node is 0. If the ID is greater than 0, the callback can just return without doing anything.
------------------------------
Paul Rubin
Professor Emeritus
Michigan State University
------------------------------