Quittio 0.3 API

XsdValidator
in package
implements ValidationDriver

FinalYes

XML schema validation (level L4) with the bundled CII D16B and UBL 2.1 schemas.

Table of Contents

Interfaces

ValidationDriver
A validation driver checks one or more levels (PHP rules, XSD, KoSIT, veraPDF, …).

Methods

__construct()  : mixed
levels()  : array<int, ValidationLevel>
name()  : string
schemaFor()  : string|null
supports()  : bool
Whether the driver can run for the subject (e.g. XML drivers need generated XML).
syntaxOf()  : Syntax|null
validate()  : ValidationResult
validateXml()  : array<int, ValidationMessage>

Methods

__construct()

public __construct([string|null $schemaPath = null ]) : mixed
Parameters
$schemaPath : string|null = null

schemaFor()

public schemaFor(DOMDocument $document) : string|null
Parameters
$document : DOMDocument
Return values
string|null

syntaxOf()

public static syntaxOf(DOMDocument $document) : Syntax|null
Parameters
$document : DOMDocument
Return values
Syntax|null
On this page

Search results