java - Jsoup select text after tag -


i want extract text after each tag using jsoup. there way select directly or have perform .substring on whole thing?

<div> <a href="#"> don't want text </a>  **i want retrieve text** </div> 

public static void main(string... args) throws ioexception {      document document = jsoup.parse("<div>"             + "<a href=\"#\"> don't want text </a>"             + "**i want retrieve text**" + "</div>");      element = document.select("a").first();      node node = a.nextsibling();     system.out.println(node.tostring()); } 

output

**i want retrieve text** 

Popular posts from this blog

How to calculate SNR of signals in MATLAB? -

c# - Attempting to upload to FTP: System.Net.WebException: System error -

ios - UISlider customization: how to properly add shadow to custom knob image -