Updated TreeVisualizer to use xp instead of nodex.