use arrayList of some getter/setter class create start element and end element methods in your parser class which extends default handler
On Fri, Jul 1, 2011 at 1:55 PM, NaveenShrivastva < [email protected]> wrote: > > > On Fri, Jul 1, 2011 at 12:54 PM, naveen kumar <[email protected] > > wrote: > >> Hi All Android developer, >> >> >> Till now i am not getting perfect solution for >> >> === >> >> i am getting large server response in XML format.i am not able to save >> that all response in String for parser. >> >> getting Outofmemory exception, so i am taking line line by line >> response that works . >> >> >> but i want to handle bulk of response fastly , now it's take 10 >> minutes. >> >> Please help me how to handle bulk of XML-response from server. >> >> very urgent need for me.. >> >> >> Thanks, >> >> -- >> You received this message because you are subscribed to the Google >> Groups "Android Developers" group. >> To post to this group, send email to [email protected] >> To unsubscribe from this group, send email to >> [email protected] >> For more options, visit this group at >> http://groups.google.com/group/android-developers?hl=en > > > try { > > inStream = new DataInputStream ( conn.getInputStream() ); > > String str; > > while (( str = inStream.readLine()) != null) > > { > Log.e("Debug","Server Response "+str); > > } > inStream.close(); > > } > > catch (IOException ioex){ > Log.e("Debug", "error: " + ioex.getMessage(), ioex); > > } > > > This code prints line by line response but not printing bulk of response help > me > > > -- > You received this message because you are subscribed to the Google > Groups "Android Developers" group. > To post to this group, send email to [email protected] > To unsubscribe from this group, send email to > [email protected] > For more options, visit this group at > http://groups.google.com/group/android-developers?hl=en -- Regards Abhishek Talwar 9953395712 -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

