Is there any command to indent xml from the terminal?
本问题已经有最佳答案,请猛点这里访问。
xmllint fileName - checks if the xml defined is right..
号
有从终端缩进XML的命令吗?
xmllint没有--format选项:
1 2 3 4 | --format Reformat and reindent the output. The XMLLINT_INDENT environment variable controls the indentation. The default value is two spaces ""). |