parse domtree