Friday, 13 September 2013

How to format httpresponse which is got by jsoup

How to format httpresponse which is got by jsoup

In the following code i am getting httpresponse like this
09-13 15:06:26.506: I/System.out(1351): <dd>
09-13 15:06:26.506: I/System.out(1351): <b>DU06BFZ</b>
09-13 15:06:26.506: I/System.out(1351): </dd>
09-13 15:06:26.936: I/System.out(1351): <dd>
09-13 15:06:26.936: I/System.out(1351): SILVER
09-13 15:06:26.936: I/System.out(1351): </dd>
here want to remove those <dd><b></b></dd> from the response here is my
code to get the output string
document = Jsoup.parse(result);
Element ele = document.select("dt:contains(Registration
mark:) ~ dd").get(0);
Element ele0 = document.select("dt:contains(Make/Model:) ~
dd").get(0);

No comments:

Post a Comment