Re:With 'The Machine,' HP May Have Invented a New Kind of Co...
by biot on Wednesday June 11, 2014 @03:46PM
(#7880037)
GML is from the late 1960s and is, arguably, easier to read. SGML from the 1980s expanded upon this. XML is essentially just an offshoot of SGML and much less readable than SGML is. For example, here is a valid SGML document:
Aside from XML's lineage, there is no shortage of markup languages available with varying levels of readability.
[ Parent
| on HN ]
Re:With 'The Machine,' HP May Have Invented a New Kind of Co...
by Touche on Wednesday June 11, 2014 @04:00PM
(#7880107)
I'm confused, why does anthology have a closing tag but the other elements do not?
Re:With 'The Machine,' HP May Have Invented a New Kind of Co...
by __david__ on Wednesday June 11, 2014 @04:14PM
(#7880169)
The same reason <ul> has a closing tag but <li> does not: HTML is SGML where certain tags can be made optional. XML specifically did away with this and made all close tags mandatory (even on contentless tags, which is why xhtml requires you to do <img />).
Re:With 'The Machine,' HP May Have Invented a New Kind of Co...
by Touche on Wednesday June 11, 2014 @04:23PM
(#7880212)
Just to be clear, are some closing tags optional or are all closing tags optional? If the former, how do you know which?
Re:With 'The Machine,' HP May Have Invented a New Kind of Co...
by Tuna-Fish on Wednesday June 11, 2014 @08:43PM
(#7881242)
In this case, the schema probably disallows any other tags inside <line>, which makes </line> superfluous and it can thus be omitted. If <stanza>s are not recursive and poems cannot contain <line>s outside <stanza>s, </stanza> can also be omitted. Etc etc.
Re:With 'The Machine,' HP May Have Invented a New Kind of Co...
by justincormack on Wednesday June 11, 2014 @04:45PM
(#7880337)
You work it out from the schema - if it is not ambiguous you can omit it.