XMLReader::isValid

PHP 5 >= 5.1.0, PHP 7, PHP 8
XMLReader::isValid - Indicates if the parsed document is valid
Manual
Code Examples

Example #1 Validating XML

PHP Version: