android - do not understand xml parsing code -
the following code xml parsing.
try { httpentity entity = response.getentity(); final inputstream in = entity.getcontent(); final saxparser parser = saxparserfactory.newinstance().newsaxparser(); final xmlhandler handler = new xmlhandler(); reader reader = new inputstreamreader(in, "utf-8"); inputsource = new inputsource(reader); is.setencoding("utf-8"); parser.parse(is, handler); //todo: data handler } catch (final exception e) { log.e("parseerror", "error parsing xml", e); }
over here pass url. response object in line
response.getentity() object of httpresponse()?
thank in advance.
the code show processing after url connection has been opened, , result has been obtained. @ point there no more url pass.
response
httpresponse.
Comments
Post a Comment