Skip to content

Kirby 3.5.7.1

Xml::validateFile()

Validates the contents of a file

Xml::validateFile(string $file): void

Parameters

Name Type Default
$file * string

Exceptions

Type Description
Kirby\Exception\InvalidArgumentException If the file didn't pass validation
Kirby\Exception\Exception On other errors

Parent class

Kirby\Sane\Xml inherited from Kirby\Sane\Handler