xerces-c

C++ XML parser library with validation and DOM/SAX support.

brewmacoslinux
Try with needOr install directly
Source

About

Validating XML parser

Commands

XercesCreateModuleXercesRunSAXCountSAXPrintDOMCountDOMPrintStyledDocument

Examples

count elements and attributes in an XML file$ SAXCount document.xml
validate XML against schema and print structure$ SAXPrint -s schema.xsd document.xml
parse and format XML with indentation$ DOMPrint -f document.xml
check if XML is well-formed and valid$ DOMCount -v=all document.xml
validate multiple XML files with schema$ SAXCount -s schema.xsd *.xml