I need to install xmllint, but don't know how to

Solution 1:

The tool xmllint is part of the libxml2-utils package

As superuser run:-

#apt -y install libxml2-utils

and the xmllint tool will become available e.g.

xmllint --format your.xml