I would guess that, if XML parsing is faster than JSON parsing, it's largely because the XML parsers are more highly optimized (due to it being a more mature technology). From a purely mechanical standpoint the amount of work that either needs to do is pretty much equivalent on a per-byte basis.
On Jun 3, 10:37 am, Edam <edamr...@hotmail.com> wrote: > Hi, > > I'm assuming you want to know what format the webservice should return data > in? JSON vs XML. > > I think there are 3 things to consider. > > 1. Amount of data being sent over the web. > 2. Processing required to de-serialise the data (speed). > 3. Programming complexity. > > I was thinking the same thing and has a look round the web. > > I believe that JSON will always be a smaller amount of data because of the > overhead for XML nodes. > > Some body had already run some tests to see which is faster. > It seems that in his testing, XML de-serialisation using SAXParser was > faster than JSON (if somebody has some real examples, please share). > > Regarding programming, I have only used SAXParser and find it very easy to > code, understand and debug. > I put together a reasonably complex SAXParser for de-serialising Google > SketchUP dea files that are in XML format. -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en