til

Today I Learned: collection of notes, tips and tricks and stuff I learn from day to day working with computers and technology as an open source contributor and product manager

View project on GitHub

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

Resources and References