3 ms·
Not for each use case of everything, anywhere, of course. This specific use case is important enough to warrant a dedicated parser though, and has benefits both
by lloeki 7y ago
Not for each use case of everything, anywhere, of course. This specific use case is important enough to warrant a dedicated parser though, and has benefits both in performance and in security.
People have ben actively doing this for XML with streaming parsers that emit events, where you don't just validate XML itself but the semantics of the payload you're receiving, and bail out early instead of parsing the whole XML into a DOM then validating the DOM structure and values.