DOMDocument::validate
DOMDocument::validate
(PHP 5, PHP 7)
DOMDocument::validate — Validates the document based on its DTD
Description
public bool DOMDocument::validate ( void )
Validates the document based on its DTD.
You can also use the validateOnParse property of DOMDocument to make a DTD validation.