Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the difference between SGML and XML? [closed]

All the Google results suck.

like image 351
Tom Lehman Avatar asked Apr 14 '09 00:04

Tom Lehman


1 Answers

SGML is much harder to parse than XML as it has things like implicitly closing tags that close automatically (without specifying a closing tag).

I suspect that SGML has such features as it was more common when SGML was introduced in the 80s for humans to directly create SGML by hand than is the case for XML today, and so these features saved lots of typing. For example the OED was marked up (by hand?) in SGML in the 80s.

enter image description here

like image 125
Matthew Lock Avatar answered Oct 10 '22 22:10

Matthew Lock