src/Viserio/Component/Parser/Utils/XliffUtils.php
public static function validateSchema(DOMDocument $dom): array
    {
        return XmlUtils::validateSchema($dom, self::getSchema(static::getVersionNumber($dom)));
    }
public static function validateSchema(DOMDocument $dom): array
    {
        return XmlUtils::validateSchema($dom, self::getSchema(static::getVersionNumber($dom)));
    }
Validates and parses the given file into a DOMDocument.

@param \DOMDocument $dom

@throws \Viserio\Component\Contract\Parser\Exception\InvalidArgumentException

@return array