MI-DPLA / combine

Combine /kämˌbīn/ - Metadata Aggregator Platform
MIT License
26 stars 11 forks source link

add XSD validation #289

Closed ghukill closed 5 years ago

ghukill commented 5 years ago

Schematron is currently supported, but add the arguably more common XSD (XML Schema Definition) validation as well.

ghukill commented 5 years ago

Added. Using lxml to validate.

Unfortunately, lxml appears to bail at the first exception, and doesn't appear possible to capture other, "down file" exceptions. But, a step in the right direction, and scaffolding is there if another XSD validation approach is found.

selection_001

Closing.

colehudson commented 5 years ago

What about this one? https://github.com/brunato/xmlschema

ghukill commented 5 years ago

That was a good find, but as far as I can tell, still returns when the first error is met.