Relaxng
RELAX NG (ISO/IEC 19757-2) is an International Standard schema language for XML
Schematron
Schematron is a structural, rule-based validation language for XML documents
Others
Example |
---|
Other options to check are relaxng which is more flexible and powerful than xml schema or schematron which allows for exactly this sort of validation that needs to go deeper than structure and simple type-checks from question XML Schema content model is not deterministic |