gxml

GObject-based XML DOM API library for parsing and manipulating XML

brewmacoslinux
Try with needOr install directly
Source

About

GObject-based XML DOM API

Commands

gxml

Examples

Parse and validate an XML file$ gxml validate document.xml
Query XML document using XPath$ gxml xpath '//element[@attr="value"]' document.xml
Pretty-print an XML file$ gxml format -i document.xml -o formatted.xml