Originally Posted by peptobismol
You probably don't want to propagate an array from an XML in a mobile platform. It'll take up 2x the memory space and will crash if long enough.
Yeah, we ended up just ditching XML all together on the mobile. Binary AMF works much better on this platform.
I would agree that in most cases, you would end up on the losing end in a conversion from XML to another format. Most of the resources used with XML is an upfront cost, which will need to be paid one way or the other. However, once this toll has been paid, I would think operating on binary is more efficient than operating on a dynamic XML structure, considering even something as slight as using object literal notation is faster than calling new Object() (irrelevant, but my point is that dynamic == overhead).
This has me curious now. I'll have to play around with a few different tests and determine which (if any) situations would actually call for a conversion.
Sorry for my technically incorrect use of "binary" in that second paragraph, I wasn't sure what else to call it. I realize an XML node is also binary, once parsed from a string... it just has a lot of cruft on top of it, which is what I was trying to get at.