I am trying to parse the HTML webpage which have the div elements with the only class attribute. I need to extract information from it. It is multiple div element with so i need to traverse through DOM. But I can't identify the div element.
In my opinion you should use jsoup. It is Java HTML parser. Its feature is listed below.
For example you want to get a DIV elements with class foo
Document doc = Jsoup.connect("http://website.com/").get();
Elements divs = doc.select("div.foo");