7. XML Really BAD !!
• Character Encoding
• Embedding binary data
• Indentation Characters Mixed With Data
• Textual Representation of Numeric Data
<int>1234567890</int>
• Human un-readability
• A single XML root element
9. XML alternatives
CSV
YAML
JSON
DL
Property Lists
GroovyMarkup
…..
XML Alternatives
10. CSV “ Comma Separated Value”
EX :-
Year,Make,Model,Length
1997,Ford,E350,2.34
2000,Mercury,Cougar,2.38
Cons : -
homemade parser is required to convert the CSV data into a
native data structure.
11. YAML
EX :-
receipt: Oz-Ware Purchase Invoice
date: 2007-08-06
customer:
given: Dorothy
family: Gale
cons :-
very immature API , Not commonly used.
14. XML
• Good namespace support
• Widely Supported
• Less memory usage to decode
• “ DRY or DIE “
15. JSON
• Simple API
• Very good support by all browsers
• Concise format thanks to name/value pair -based
approach
• Fully automated way of de-serializing/serializing
JavaScript object
• Supported by many AJAX toolkits and JavaScript
libraries
16. Using JSON !!
Yahoo! Web Services
Google Data Protocol
Delicious data feeds
Flickr services