On Thu, Dec 31, 2009 at 4:11 PM, Steffen Larsen <[email protected]> wrote:
> Hi Mika and others!, > > I am in a support of this kind of feature. In very limited devices (e.g. > set-top boxes running old mozilla 1.7.x etc.) parsing the XML can be heavy. > I was actually thinking of an embedded JSON object when sending/receiving a > PubSub (xep-0060). > Well, if you are concerned about set-top boxes running old mozilla 1.7.x etc, don't use JSON. Native JSON parsing in client javascript was only introduced in Firefox 3.5 (Gecko 1.9.1). See: https://developer.mozilla.org/En/Using_native_JSON > I haven't tried my idea yet, but it should be possible to put in JSON > formated entries inside the entry tag of xep-00060, if its put inside a > CDATA tag (that is not parsed as xml). E.g. : <![CDATA[ .....JSON.... ]] > Even so my idea holds and can be done, your JSON BOSH request/response > seems like a nice idea to implement in my connection manager.. I might do > some implementation in it, to try it out. > > What I'm even more interested in is the binary XML variants, which require pretty much no parsing. On really constrained devices, like low end cell phones with RAM and CPU measured in kilobytes and kilohertz, this can have a significant impact. For those interested, the Efficient XML Interchange (EXI) Format became a W3C Candidate Recommendation last month: http://www.w3.org/TR/exi/ > -Cheers and have a nice new years eve! :-) > > /Steffen > . -- Waqas Hussain
