A sax style parser for JS
Browse cluster: Operating Systems and Low-Level Systems →sax-js is a SAX-style parser for XML and HTML built with Node.js in mind, though it also works in browsers and other CommonJS implementations. The parser allows developers to process XML strings through event-driven callbacks for various document elements like opening tags, closing tags, text nodes, attributes, and comments, with support for both strict and loose parsing modes. It can be used either directly through a parser interface or as a stream that can be piped through Node.js file operations, and offers configurable options for handling entities, namespaces, whitespace normalization, and case conversion.