Code: XML data format

Chapter 8 - Ajax Optimization

For example, consider that when we request a simple list of comma-separated values, any returned data will be quite concise:

value1,value2,value3,...value N

If you encoded the same data in XML, it would be much bulkier:

<?xml version="1.0" encoding="UTF-8" ?>
<packet>
<item>Value 1</item>
<item>Value 2</tem>
...
<item>Value N</item>
</packet>