# XMLReader::isValid

(PHP 5 >= 5.1.2)

XMLReader::isValid — Indicates if the parsed document is valid

### Description

XMLReader
bool isValid ( void )

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

### Return Values

Returns `TRUE` on success or `FALSE` on failure.

### See Also

- XMLReader::setParserProperty
- XMLReader::setRelaxNGSchema
- XMLReader::setRelaxNGSchemaSource