XLM had DTDs and Schemas 20 years ago.
JSON is still figuring it out.
If XML+DTD was so great, it would still be used.
Json has json schema. What are DTDs?
If XML+DTD was so great, it would still be used.