parser to traverse all the DOM nodes from start point