xmllint fileName - 检查定义的xml是否正确..
是否有命令从终端缩进xml?
答案 0 :(得分:1)
xmllint有一个--format选项:
--format
Reformat and reindent the output. The XMLLINT_INDENT environment
variable controls the indentation. The default value is two spaces
" ").