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.

Construct an XsdValidator.

Parameters

schema_url (str) – URI of XML schema to validate against.

classmethod validate(doc)[source]

Validate an XML document against a schema

Parameters

doc (etree.ElementTree|str|bytes) –