I think you need to set the environment variable $XMLLINT_INDENT
as you like (for example, if you want 4 spaces to use four spaces ""). From the docs:
The $ XMLLINT_INDENT environment variable controls the indentation (the default value is two spaces "")
Then you need to run it using the --format
flag. eg:.
xmllint --format my_file_name.xml
source share