$XMLLINT_INDENT environment variable controls the indentation (default value is two spaces ” “)
然后,您需要使用–format标志运行它.例如.:
xmllint --format my_file_name.xml