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
sourceA string containing the RNG schema.
Return Values
Success
See Also
DOMDocument::relaxNGValidateDOMDocument::schemaValidateDOMDocument::schemaValidateSourceDOMDocument::validate