Skip to content

Kirby 3.7.5

Xml::validate()

Validates file contents

Xml::validate(string $string): void

Parameters

Name Type Default
$string * string

Exceptions

Type Description
Kirby\Exception\InvalidArgumentException If the file couldn't be parsed
Kirby\Exception\InvalidArgumentException If the file didn't pass validation

Parent class

Kirby\Sane\Xml inherited from Kirby\Sane\DomHandler