Re:HTTP: , FTP:, and Dict:?
by marcosdumay on Sunday September 22, 2024 @11:12AM
(#41617611)
The legibility is probably one of the main reasons JSON got adopted. XML can be made to not look too bad, but in SOAP it must be unreadable, so everybody was looking into fixing this.
[ Parent
| on HN ]
XML has a sweet advantage though. It can be styled in the browser. For example a sitemap that works for Google, OpenAI, &c. and is human readable looking like a web page.
Example:
This is fun, but in reality, not all that useful.
Except you can impress other nerds when they "view source" and there's not an HTML tag in sight.
XML is a language designed for markup (i.e. text formatting), and fitting structured documents into it creates an impedance mismatch.
Dictionary definitions may be considered as marked-up documents, so it may work. The overall structure of the dictionary is not.