muxml
JSON →muxml is a Node.js streaming XML parser and formatter built on sax. It accepts XML strings via a Transform stream and emits individual XML elements as chunks. It supports minification, beautification, and stripping of comments, CDATA, instructions, doctype declarations, and attributes, plus tag filtering. The package is available in ES6 and ES5/UMD formats for Node.js >=4 and browser. Current stable version 2.0.1 requires Node.js >=8. It is maintained, but the last release was in 2019.