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
- libdazzle
GNOME companion library to GObject and Gtk+ - gnome-builder
Develop software for GNOME - gnome-recipes
Formula for GNOME recipes - libsecret
Library for storing/retrieving passwords and other secrets - gnome-papers
Document viewer for PDF and other document formats aimed at the GNOME desktop viewer document pdf reader ebook comic… - ghex
GNOME hex editor - baobab
Gnome disk usage analyzer - gjs
JavaScript Bindings for GNOME
Listing text is written by the maker; AptLynx lists tools and does not vouch for them. Find another tool · Browse by topic · For agents