All the Google results suck.
Asked
Active
Viewed 1.3k times
12
-
2Best question description ever. – HelloGoodbye Jun 25 '18 at 07:06
3 Answers
16
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.

Matthew Lock
- 13,144
- 12
- 92
- 130
-2
The main difference is that SGML specifies the standard for how to specify a document markup language or tags whereas XML specifies the standard for user defined tags(i.e a user can define his own tag)
For clarity in my answer refer the below link:
http://sdn.vlsm.org/share/LDP/authors/html/xmldifferences.html
Thank you.
-
3Link is 404. Current explanation ignores that XML is a subset of SGML (see http://stackoverflow.com/a/745954/873282) – koppor Dec 03 '15 at 15:12