By it's nature DOM is memory intensive. Using the SAX parser will allow you to possibly quickly reclaim memory but still involves quite a bit of processing b/c these APIs were written to be quite robust. Considering this is a mobile platform where we're encouraged to optimize things that would normally be a waste of time (for-loops, etc) I think your best bet is static utility methods that handle the strings in a hard coded fashion and return the beans. It is far from robust but you need to keep the app performing well with others.
On Oct 25, 10:32 pm, Casey Link <[EMAIL PROTECTED]> wrote: > Hello, > > My Application is consuming some remote REST services. Currently I am > using java.net.HttpURLConnection to make the POST/GET requests, and > javax.xml.parsers.DocumentBuilder, org.w3c.dom to parse the XML > results. > > I don't have any hard numbers, but it is very slow in the emulator. > The main bottleneck seems to be the DOM parsing routines. Is there a > recommended/preferred/faster way of making POST/GET requests, and > parsing XML in the android? > > Casey Link --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

