XML was/is great. It was the issue with people abusing the shit out of CDATA and comments to do meta programming inside the XML and making it an absolute nightmare.
I believe it was an additional reason why comments were excluded from the JSON spec. I can't find the exact quote but Crockford's comment about excluding them for parser directive reasoning is pretty bang on considering usage of JSON primarily as an interchange format (and evidence of a good decision based on it's staying power).
https://web.archive.org/web/20190112173904/https://plus.goog...