3 ms·
> a straightforward implementation based around a regex A "straightforward regex" is so large/complicated the solution actually uses a JS code generator. Yes,
by paulddraper 6y ago
> a straightforward implementation based around a regex
A "straightforward regex" is so large/complicated the solution actually uses a JS code generator.
Yes, decoding is only part of XML parsing, and you technically can use a regex for the coding.
But 9/10 times sometimes rolls a regex to help parse XML they fail miserably. Including AWS engineers.
- Dylan16807 6y agoIt uses a code generator but that seems to be concatenating some constants together to allow for prettier organization and reuse between encoding and decoding. The core of what it has to match against to handle escapes isn't very complicated.