jsoup is a Java library for working with real-world HTML. It provides a very convenient API for extracting and manipulating data, using the best of DOM, CSS, and jquery-like methods.

example

String userURL = "http://azizkhani.net/admin/Posts/Add_entry.aspx";

content of this request contain this tag

 

<input type="text" id="txt_title" value="title"  />
Document doc = Jsoup.connect(userURL).get();

doc.getElementById("txt_title").val();



 http://jsoup.org/cookbook/extracting-data/selector-syntax