9
3
Are there any utilities similar to xpath for parsing XML files that would be natively available on a RedHat server?
Similar questions have been answered elsewhere, but none of the tools listed are on the server.
update: xmllint is installed, and man xmllint
indicates that it can parse xml files, but it is not clear that this gives me the ability to extract a string from a specific node.
1Too bad that the "--xpath" option is only available on RedHat 7, which was not around when this question was posted. – chutz – 2015-01-03T14:50:53.970
Workaround for earlier versions of xmllint: http://stackoverflow.com/a/38199367/185196
– Joel Beckham – 2016-11-04T19:20:40.573