Menu

Close
  • Home
  • Solutions Log
  • About
  • Search
Subscribe
☰Menu

Reformat and reindent an XML file

#xml

This is easy to accomplish with xmllint and a shell one-liner:

xmllint --format inputfile.xml > outputfile.xml

Dan Reiland

Operations Engineer

Minneapolis, Minnesota https://unixsherpa.com

Share this solution

Twitter Facebook Pinterest Google+
UnixSherpa All rights reserved - 2023