AptLynx

Command-line tool

libxml2

brew/libxml2

Checked 25 Oct 2026, 21:09 UTC · Listing refreshed from Homebrew, winget, npm, Scoop and cargo; npm packages checked against OSV.dev

GNOME XML library

At a glance

Type
Command-line tool
Install on
Windows, macOS, Linux
Last checked
25 Oct 2026, 21:09 UTC

Install it

Windows

scoop install libxml2

macOS

brew install libxml2

Linux

brew install libxml2

Return all nodes (tags) with a specific name

xmllint --xpath "//node_name" source_file.xml

Return the contents of the first node with a specific name as a string

xmllint --xpath "string(//node_name)" source_file.xml

Return the href attribute of the second anchor element in an HTML file

xmllint --html --xpath "string(//a[2]/@href)" webpage.xhtml

Related command-line tools

Listing text is written by the maker; AptLynx lists tools and does not vouch for them. Find another tool · Browse by topic · For agents