the fastest way to get all the nodes (recursively) in JSoup doc

advertisements

I'd like to get all nodes in a JSoup doc. What's the best way to do this (in Java or Scala?)

Thanks


You can use * selector:

Elements elements = document.select("*");