XMLReader::setSchema

(PHP 5 >= 5.2.0)

XMLReader::setSchemaValidate document against XSD

Опис

public bool XMLReader::setSchema ( string $filename )

Use W3C XSD schema to validate the document as it is processed. Activation is only possible before the first Read().

Параметри

filename

The filename of the XSD schema.

Значення, що повертаються

Повертає TRUE в успішному випадку або FALSE в разі помилки.

Помилки/Винятки

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.

Прогляньте Також

add a note add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top