Prettify XML on the CLI
I am doing some XSL processing the command line using: xsltproc
.
The output is not always easily digestible, so I started to pipe it to xml_pp
which is XML Pretty Printer implemented in Perl available via the XML::Twig distribution
xsltproc transformer.xsl source.xml|xml_pp
It is nice with the XML prettified, but you can even get it colourized using bat
.
xsltproc transformer.xsl source.xml|xml_pp|bat