Skip to content

Simple wrapper over xmllint to implement --xpath switch on old releases and output Xpath querys delimited with newlines

Notifications You must be signed in to change notification settings

sputnick-dev/xmllint

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 

Repository files navigation

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

Example with wrapper:

$ xmllint --html --xpath '//a/@href' http://www.w3.org/
href="/"
href="/standards/"
href="/participate/"
(...)

Example without wrapper:

$ xmllint --html --xpath '//a/@href' http://www.w3.org/
 href="/" href="/standards/" href="/participate/" href="/Consortium/membership"

Another approach

Install a subsystem: https://serverfault.com/a/1022826/120473

edit 20180923: for newline delimited output, bug fixed upstream in libxml2-utils v2.9.9, check

About

Simple wrapper over xmllint to implement --xpath switch on old releases and output Xpath querys delimited with newlines

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages