News for hackers. Stuff that matters.
Re:The Goals of XML at 25: and the one change that XML now n... by Ygg2 on Monday July 19, 2021 @08:30AM (#27881887)
> I'm also not sold on the whole "HTML-style error-recovery"

Having used and written a parser for a similar recoverable localization language (https://projectfluent.org/) I'm sold on it.

It makes a lot of things easier. It's kinda like adding trailing comma to lists. It's both boon when writing lists by hand and generating it via code.

> I think DTDs are one of the ugliest things in XML (and also a well-known source of security vulnerabilities), and it is great that XML-SW (unlike XML5) mostly kills them.

Hm, that's strange. I'm pretty sure XML5 killed DTD outright, other than having a doctype definition. Perhaps the spec was outdated a bit.

XML5 had a few big ideas:

- Ending DTD

- Unquoted XML attribs

  <elem atr1=value>
- Error recovery / arbitrary nesting which is similar to HTML

  <a><b></a></b>  // Became <a><b></a> <b/>
Re:The Goals of XML at 25: and the one change that XML now n... by skissane on Monday July 19, 2021 @05:48PM (#27887630)
> Hm, that's strange. I'm pretty sure XML5 killed DTD outright, other than having a doctype definition. Perhaps the spec was outdated a bit.

I'm just going by what is at https://annevankesteren.nl/2007/10/xml5 which gives the impression that <!ENTITY> declarations are still allowed.

Re:The Goals of XML at 25: and the one change that XML now n... by Ygg2 on Tuesday July 20, 2021 @12:55PM (#27896211)
There was a full specification that had more details. It didn't parse <!ENTITY> and similar declarations but treated it as just a dumb string.