This appears to be a way of accomplishing the stated goal. Not sure it's the most efficient, but it is the most straightforward.
Element node = e.nextElementSibling();
while (node != null && !node.tagName().equalsIgnoreCase("a")) {
node = node.nextElementSibling();
}
I was hoping for a way to run the equivalent of e.nextElementSibling("a")
. Perhaps something for me to contribute back to jsoup ;-)