android - Jsoup returning empty elements -


i parsing page: http://www.catedralaltapatagonia.com/invierno/partediario.php

this page source code

 <!-- comienzo pestaÑa meteorologia --> <div class="tabbedpanelscontent"> <div class="contenedor">   <div id="pd_foto_fondo"> <br /> <div id="meteo_contenedor_avalanchas">&nbsp;&nbsp;&nbsp; ultima actualizacion parte diario:     fecha: 03 de junio de 2015  hora: 09:00 hs</div>   <br />...... 

and code use data

 document document = jsoup.connect(url).get();             elements div = document.select("div#meteo_contenedor_avalanchas");  textview textview= (textview) findviewbyid(r.id.sometextview);         textview.settext(html.fromhtml(div)); 

but receive empty result.

i need ths text: ultima actualizacion parte diario: fecha: 03 de junio de 2015 hora: 09:00 hs

how fix it?

in place of

elements div = document.select("div#meteo_contenedor_avalanchas");

add below code,

string div = document.getelementbyid("meteo_contenedor_avalanchas").tostring(); 

Comments

Popular posts from this blog

Magento/PHP - Get phones on all members in a customer group -

php - Bypass Geo Redirect for specific directories -

php - .htaccess mod_rewrite for dynamic url which has domain names -