Skip to content Skip to sidebar Skip to footer

Html Text Extraction In J2me

I want to extract text from a web page in j2me, I have used String operations,but I am not getting the result, was my code correct? The String from a web page:

Solution 1:

It looks like in readUrl String there is an extra space between middle and class on the td. My suggestion is to change

int tdIndex = readUrl.indexOf("<td align=\"left\" valign=\"middle\" class=\"celebrity-details-description-txt\">");

to just

int tdIndex = readUrl.indexOf("class=\"celebrity-details-description-txt\"");

Post a Comment for "Html Text Extraction In J2me"