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