Comment

Comment by bemusedthrow75

> That is, if `<Tag1><Tag2></Tag1></Tag2>` is always considered malformed, then why isn't the syntax simply `<Tag1><Tag2></></>`?

XML isn't just a structured data format where close tags always run up against each other and whitespace is insignificant. It's also a descriptive document format which is often hand-authored.

I think the argument is that the close tags being named makes those documents easier for a human author to understand. It certainly is my experience.

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton