xmllint is a wrapper over xmllint from libxml2-utils
.
The goal is to implement --xpath
switch for very old version of xmllint
and to have newlines delimited output. (Unlike version < 2.9.9).
Require bash
and... xmllint
$ xmllint --html --xpath '//a/@href' http://www.w3.org/
href="/"
href="/standards/"
href="/participate/"
(...)
$ xmllint --html --xpath '//a/@href' http://www.w3.org/
href="/" href="/standards/" href="/participate/" href="/Consortium/membership"
Install a subsystem: https://serverfault.com/a/1022826/120473