xmltidy

module for tidy indenting of XML documents

Install

All systems
curl cmd.cat/xmltidy.sh
Debian Debian
apt-get install libxml-tidy-perl
Ubuntu
apt-get install libxml-tidy-perl
image/svg+xml Kali Linux
apt-get install libxml-tidy-perl
Fedora
dnf install perl-XML-Tidy
Windows (WSL2)
sudo apt-get update sudo apt-get install libxml-tidy-perl
Raspbian
apt-get install libxml-tidy-perl

libxml-tidy-perl

module for tidy indenting of XML documents

XML::Tidy creates XML document objects (with inheritance from XML::XPath) to tidy mixed-content (ie. non-data) text node indenting. There are also some other handy member functions to compress && expand your XML document object (into either a compact XML representation or a binary one).

perl-XML-Tidy

Tidy indenting of XML documents