среда, 16 мая 2018 г.

XML pretty command line output

XML pretty command line output

sudo apt install libxml2-utils

and use " | xmllint --format - "

for example
echo '<root><test a="b">value</test><check value="new" /></root>' |  xmllint --format -