Hello everyone, what are the best practices parsing XML from an HTTP resource in Android? I've been using HttpURLConnection to retrieve an InputStream, wrapping it with a BufferedInputStream, and then using SAX to parse the buffered stream. For the most part it works, though I do receive error reports of SocketTimeoutException: The operation timed out or general parsing error. I believe it's due to the InputStream.
- Would using HttpClient instead of HttpURLConnection help? If yes, why?
- Should the stream be output to a file, having the file parsed instead of the stream?
Any input or direction would be greatly appreciated. Thanks for your time.