How do I get the values in a piece of Html (values="valueIWant"), and have them in an Array ? I tried the following, but that didn't work:
HttpEntity entity5 = response5.getEntity();
String defaultString = EntityUtils.toString(entity5);
Document defaultDoc = Jsoup.parse(defaultString);
Elements values = defaultDoc.getElementsByAttribute("value"); //DropDownList Values
String s[] = {""};
for(int a=0; a<values.size(); a++){
s[a] = values.get(a).toString();
}
return s;
So anyone got an answer? thanks. (Btw, i use Jsoup)