GObject-based XML DOM API library for parsing and manipulating XML
GObject-based XML DOM API
gxml
$ gxml validate document.xml
$ gxml xpath '//element[@attr="value"]' document.xml
$ gxml format -i document.xml -o formatted.xml