Open In App

PHP | XMLReader setRelaxNGSchema() Function

The XMLReader::setRelaxNGSchema() function is an inbuilt function in PHP which is used to set the filename or URI for the RelaxNG Schema to use for validation.

Syntax:



bool XMLReader::setRelaxNGSchema( string $filename )

Parameters: This function accepts a single parameter $filename which holds the filename or URI pointing to a RelaxNG Schema.

Return Value: This function returns TRUE on success or FALSE on failure.



Below examples illustrate the XMLReader::setRelaxNGSchema() function in PHP:

Program 2:

Reference: https://www.php.net/manual/en/xmlreader.setrelaxngschema.php


Article Tags :