Source code for ocrd_validators.xsd_page_validator

from .xsd_validator import XsdValidator
from .constants import XSD_PAGE_URL

[docs] class XsdPageValidator(XsdValidator): """ XML Schema validator. """
[docs] @classmethod def validate(cls, doc): # pylint: disable=arguments-differ """ Validate an XML document against a schema Args: doc (etree.ElementTree|str|bytes): """ return cls.instance(XSD_PAGE_URL)._validate(doc) # pylint: disable=protected-access