Post History
xmllint from xmllib2 can do this: $ output-dirty-xml | xmllint --format - The dash in the end tells xmllint to read from stdin instead of a file. Source: manpage
Answer
#1: Initial revision
`xmllint` from [`xmllib2`](https://gitlab.gnome.org/GNOME/libxml2/-/wikis/home) can do this: ```bash $ output-dirty-xml | xmllint --format - ``` The dash in the end tells xmllint to read from stdin instead of a file. Source: [manpage](https://man.archlinux.org/man/xmllint.1#DESCRIPTION)