Comment

Comment by fergie

The author forgot to mention one the biggest functional benefits of XML which is interpolation: the ability to drop XML components into the middle of text, thereby allowing for markup and nesting of elements in text.

<tag>

  This text node contains <magic>unicorns</magic> and <magic>fairy dust</magic>.
</tag>

There is (as far as I know) no sensible way to add the magic above in JSON or YAML.

parent fergie 6 years ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton