json is to JavaScript as xml is to the world as English is to Esperanto!

Way cool, but only understood and easily used by languages similar to
JavaScript (Perl, php, ...)

XML has no language dependencies, and is cool in it's own way.

Getting json to preserve order would be a pain, and is often not needed.

{p:[{b:'Title"},{i:"Subtitle"},{b:"Author"}]}
would do it, but using such a json  would not be as simple. as simple {} or
[] indexing.

With a xml dom, there is one 1 way to get to the data.




On 5/22/07, Jake McGraw <[EMAIL PROTECTED]> wrote:

What exactly does your XML schema represent? Is it just a form of stylized
markup, say b Bold, i Italicized? I'm pretty sure the for(x in y) loop will
maintain order of variables within a JSON string, reading off variables left
to right.

- jake

On 5/22/07, Sean Catchpole <[EMAIL PROTECTED]> wrote:
>
>
> I really like json, and the ability to recognize arrays is great.
> However, there is strength of xml in that order can be preserved. I
> can not think of a way to implement this in json. Is it possible and I
> am simply blind to the truth?
>
> XML:
> <p><b>Title</b><i>Subtitle</i><b>Author</b></p>
>
> JSON:
> {"p":{"b":["Title","Author"],"i":"Subtitle"}}
>
>
> ~Sean
>




--
Ⓙⓐⓚⓔ - יעקב   ʝǡǩȩ   ᎫᎪᏦᎬ

Reply via email to