XMLReader::setSchema
(PHP 5 >= 5.2.0)
XMLReader::setSchema — Validate document against XSD
Описание
bool XMLReader::setSchema
( string $filename
)
Список параметров
-
filename
-
The filename of the XSD schema.
Возвращаемые значения
Возвращает TRUE в случае успешного завершения или FALSE в случае возникновения ошибки.
Errors/Exceptions
Issues E_WARNING if libxml was built without schema
support, the schema contains errors or if
XMLReader::read() has already been called.
Примечания
ПредостережениеThis function is only available when PHP is compiled against libxml 20620 or later.