News for hackers. Stuff that matters.
Re:Never use a dependency that you could replace with an aft... by benibela on Wednesday August 12, 2020 @05:12PM (#24137053)
xml and json are different beasts

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)>>?>
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.
Re:Never use a dependency that you could replace with an aft... by Ma8ee on Friday August 14, 2020 @04:45AM (#24155455)
And we didn’t need a conformant xml parser, which I know is huge and complex.