Skip to content

Latest commit

 

History

History
23 lines (15 loc) · 701 Bytes

prettify_xml_on_the_cli.md

File metadata and controls

23 lines (15 loc) · 701 Bytes

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