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.
XML starlet中的 XML 处理有什么替代方法bash吗?我的典型用法是:
XML starlet
bash
XPath
看看xmllint。
xmllint
要格式化 xml:
$ xmllint --format file.xml
要评估 XPath:
$ xmllint --format --shell file.xml <<< "cat /some/xpath/expression"