Convert visual node to tree node.