Manipulating XML with Javascript, when you are using Ajax techniques, is a pain. This is why JSON was created and at first I was pleased with it. It seemed a neat way of passing data back and forth without the hassle of traversing XML nodes.
However it struck me that JSON might be a dead end what with the impending arrival of E4X aka ECMAScript for XML. As the name suggest it makes XML manipulation with Javascript a good deal easier. I haven’t worked with it much but as far as I can see it makes XML data a native object in Javascript.
So you can invest in JSON now and then later on switch all your Ajax endpoints to XML and all your client-side script. Or you can battle with XML for now and hope E4X becomes standard in as many browsers as possible.
Add New Comment
Viewing 2 Comments
Thanks. Your comment is awaiting approval by a moderator.
Do you already have an account? Log in and claim this comment.
Do you already have an account? Log in and claim this comment.
Do you already have an account? Log in and claim this comment.
Add New Comment
Trackbacks
(Trackback URL)