php8.5
Home/ Manual/ dom / domdocument/ DOMDocument::relaxNGValidateSource

DOMDocument::relaxNGValidateSource

PHP function Edit on GitHub ✎

(PHP 5, PHP 7, PHP 8)

Performs relaxNG validation on the document

Description

DOMDocument::relaxNGValidateSource(string $source): bool

Performs relaxNG validation on the document based on the given RNG source.

Parameters

source

A string containing the RNG schema.

Return Values

Success

See Also

  • DOMDocument::relaxNGValidate
  • DOMDocument::schemaValidate
  • DOMDocument::schemaValidateSource
  • DOMDocument::validate

Source: reference/dom/domdocument/relaxngvalidatesource.xml · from the official PHP manual (php/doc-en)