Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Never use a dependency that you could replace with an afternoon of programming. Parent comment
A json parser can probably be implemented in an afternoon. But a conformant xml parser can take months.
There are some weird things in xml, for example, this is correct xml:
<?xml version="1.0"?><!DOCTYPE abc[<?abc >]]<abc><abc/>]>>?>]><?x?><a/><?x <(x)>>?>
A json parser can probably be implemented in an afternoon. But a conformant xml parser can take months.
There are some weird things in xml, for example, this is correct xml:
And for external entities, you need an http client in the xml parser, although it is probably better to not support that part of the standard.