Saftlint
XSD and semantics

XSD validation is necessary, but not sufficient.

XSD checks XML structure, element order and data types. It cannot by itself establish that references resolve, mappings are known, declared totals reconcile or transactions balance.

What XSD catches

What requires semantic checks