Distinguish, differentiate, compare and explain what is the difference between XML and JSON. Comparison and Differences.
Difference between XML and JSON
1. XML uses XSD Validation. JSON has no Validation.
2. XML Includes namespaces while in JSON no namespaces
3. XML requires parsing and XML doc is parsed through parameters like xpath etc. In JSON, parsing is just an eval. Therefore it is fast.
6. XML is heavy compared to JSON