Differences

This shows you the differences between two versions of the page.

Link to this comparison view

pretty_print_xml_on_command_line [2017/02/17 09:52]
pretty_print_xml_on_command_line [2021/04/05 11:23] (current)
Line 1: Line 1:
 +====== Pretty Print XML on Command Line ======
 +
 +Install the ''libxml2-utils'' package. It contains the ''xmllint'' program. Pipe the xml data to this program like this
 +
 +    cat file.xml | xmllint --format -
 +
 +{{tag>linux xml}}