In a past few weeks, most of my projects handled involved XML manipulation and AJAX. And because of that I found an alternative to the XML which is more lightweight and can be easily used together with your DOM. Its JSON.
Lets take a look what JSON looks like.
'title': 'JSON: Getting started with JSON',
This is the equivalent in XML:
<details id="1" type="book">
<title>JSON: Getting started with JSON</title>
<price us="19.99" ca="19.99" />
JSON is more elegant in describing your data because of its simplicity and more lightweight.
In the next post about JSON I will be covering JSON Requests and Responses and give some examples on handling it using Zend Framework JSON library.