java - how to get rid of html in jsoup and only extract html table content? -


so i'm trying access table in website http://www.engin.umich.edu/htbin/wwwhostinfo?detail=0&display=all&sort=open , trying make elements object. need first , fourth columns . i'm using jsoup , doing :

document doc = jsoup.connect("http://www.engin.umich.edu/htbin/wwwhostinfo?detail=0&display=all&sort=open").get();         elements buildings = doc.select("td:eq(0),td:eq(3)"); 

this should select first , fourth columns. doing html data need skip initial stuff in webpage "the following report ... ". , need 2 columns - building , open can initialize variables , assign number of open computers in building , use toast or similar display number of open computers in building on screen.

currently i'm using textview show data , showing me html data don't want well.

textview tv = new textview(this);         tv.settext(""+buildings);         setcontentview(tv); 

can individual values extracted elements ?

in short: how extract building names , no. of open computers skipping other data , assign them own variables?

any ideas on how this?.

thanks in advance - a.v.

you use jsoup cleaner & whitelist task.

just define shall not removed , you're go!


Comments

Popular posts from this blog

django - How can I change user group without delete record -

java - Need to add SOAP security token -

java - EclipseLink JPA Object is not a known entity type -