ocrd_validators.xsd_mets_validator module

class ocrd_validators.xsd_mets_validator.XsdMetsValidator(schema_url)[source]

Bases: ocrd_validators.xsd_validator.XsdValidator

XML Schema validator.

classmethod validate(doc)[source]

Validate an XML document against a schema

Parameters

doc (etree.ElementTree|str|bytes) –