Create elements tree.