Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
デフォルトでは、xmllint は 2 つのスペースでインデントされているように見えます。Windows でインデントのレベルを変更する方法はありますか?
環境変数を必要なものに設定する必要があると思います$XMLLINT_INDENT(たとえば、4つのスペースが必要な場合は、4つのスペース ""を使用します)。ドキュメントから:
$XMLLINT_INDENT
$ XMLLINT_INDENT環境変数はインデントを制御します(デフォルト値は2つのスペース "")
--format次に、フラグを付けて実行する必要があります。例えば:
--format
xmllint --format my_file_name.xml