Extract tree node