User Tools

Site Tools


pretty_print_xml_on_command_line

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 -
pretty_print_xml_on_command_line.txt · Last modified: 2017/02/17 08:52 by mihael