libxml2

GNOME XML library for parsing and manipulating XML documents

brewmacoslinux
Try with needOr install directly
Source

About

GNOME XML library

Commands

xml2-configxmllintxmlcatalog

Examples

Validate and format an XML file$ xmllint --format document.xml
Check XML file validity against a schema$ xmllint --schema schema.xsd document.xml
Extract XPath elements from an XML file$ xmllint --xpath '//element[@attr="value"]' document.xml