XMLReader::setSchema

(PHP 5 >= 5.2.0, PHP 7)

XMLReader::setSchemaValidate document against XSD

说锟斤拷

public XMLReader::setSchema ( string $filename ) : bool

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.

注锟斤拷

Caution

锟剿猴拷锟斤拷锟斤拷锟斤拷 PHP 锟斤拷 libxml 20620 锟斤拷锟斤拷锟较版本锟斤拷锟斤拷时锟斤拷锟矫★拷

锟轿硷拷