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 -
Install the libxml2-utils
package. It contains the xmllint
program. Pipe the xml data to this program like this
cat file.xml | xmllint --format -