You can select all elements of the document using *
selector and then get text of each individually using Element#ownText()
.
Elements elements = document.body().select("*");
for (Element element : elements) {
System.out.println(element.ownText());
}