Alternative of XML Starlet
bash, xml, xmlstarlet
Solution
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"
Problem
Is there any alternative to `XML starlet` for XML processing in `bash`? My typical usage is: - pretty formatting; - selecting data by `XPath`.