News for hackers. Stuff that matters.
Re:XML is almost always misused by catalogia on Tuesday October 29, 2019 @05:55PM (#21392519)
SGML's implied close tags are a pain in the ass though. End tags in XML are overly verbose, but at least they're required.
Re:XML is almost always misused by tannhaeuser on Tuesday October 29, 2019 @06:15PM (#21392682)
You control whether an element requires start- and end-element tags in your element declaration via "O" (letter O as in "omissible") in the respective tag omission indicator position:

    <!ELEMENT e - -(f,g,h)    -- no tag omission -->
    <!ELEMENT f O - (#PCDATA) -- start-tag omission -->
    <!ELEMENT g - O (#PCDATA) -- end-tag omission -->
    <!ELEMENT h O O (#PCDATA) -- both start- and end-
                                 tag omission allowed-->
What's painful about end-element tag omission?
Re:XML is almost always misused by gnuarch on Tuesday October 29, 2019 @06:20PM (#21392732)
Can't find the source, but vaguely remember this line from a Usenet or mailing list post, maybe by Tim Bray:

The lack of </> in XML is a crime against humanity.