read a dom tree nodes