XMLReader::isValid

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

XMLReader::isValid( ): public bool

Returns a boolean indicating if the document being parsed is currently valid.

Parameters

This function has no parameters.

Return Values

Returns true on success or false on failure.

Notes

Note:

This checks the current node, not the entire document.

Example of XMLReader::isValid

Show all examples for XMLReader::isValid

PHP Version: