Is there any alternative to XML starlet
for XML processing in bash
? My typical usage is:
XPath
.Take a look at xmllint
.
To format xml:
$ xmllint --format file.xml
To evaluate an XPath:
$ xmllint --format --shell file.xml <<< "cat /some/xpath/expression"