7 ms·
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
by benibela 6y ago
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.
- Ma8ee 6y agoAnd we didn’t need a conformant xml parser, which I know is huge and complex.