On Feb 5, 5:45 am, "Emre A. Yavuz" <[email protected]> wrote: > Hi, > > We need to convert XML messages to a stream or string which can then be sent > via sockets.
You can read one XML input with XmlPullParser (or DOM or SAX) and write it at the same time to another stream with XMLSerializer - see XmlPullParserFactory.newSerializer(). Regarding your other question, your code controls the parsing thread with XmlPullParser, but with SAX the parser controls the thread while your DocumentHandler waits for callbacks. -- 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

