Streaming XML parser and formatter
Thin wrapper around muxml
to make it a CLI app.
Also available as a gulp / Grunt plugin.
$ npm install --save muxml-cli
$ muxml-cli --help
Usage
muxml-cli [input]
Options
--help
--strict use sax strict mode
--pretty prettify
--strip-comments strip XML comments
--strip-cdata strip CDATA tags
--strip-doctype strip XML DOCTYPE
--strip-instruction strip XML instruction
--strip-attributes strip attributes from tags
--filter tag name to filter
--input input file
--output output file
Examples
$ muxml-cli '<a id="42"><span>foo</span></a>' --no-pretty > output.xml
$ muxml-cli --input=input.xml --no-pretty --output=output.xml
$ echo '<a id="42"><span>foo</span></a>' | muxml-cli --no-pretty > output.xml
- muxml | API for this module
- gulp-muxml | this module as a
gulp
plugin - grunt-muxml | this module as a
Grunt
plugin
MIT © t1st3