4 ms·
XML could really benefit from a standardized subset that cuts out all the unnecessary features and security footguns.
by thayne 2y ago
XML could really benefit from a standardized subset that cuts out all the unnecessary features and security footguns.
- Nextgrid 2y agoI find that the "unnecessary features" and footguns are what makes XML, well, XML. I guess there must be some legitimate usage of those, or at least was back in the day. If you strip them out, you'd end up with a JSON-like (so you may as well use JSON).
- dralley 2y agoOr something like RON https://github.com/ron-rs/ron https://github.com/ron-rs/ron
- thayne 2y agoNo, you would have an extensible markup language. And json is not a good fit for markup. Now, xml has also been used for a lot of things where a hierarchical format like json would have worked better than a markup format, of which SAML would be a good example. But there are also cases where a markup format makes more sense, like svg or docbook, or odf.
- thayne 2y agoGMarkup[1] is pretty close to what I had in mind. If only it was more prevalent and had an agreed upon standard. [1]: https://docs.gtk.org/glib/markup.html https://docs.gtk.org/glib/markup.html