(PHP 5 >= 5.2.0, PHP 7)
XMLReader::setSchema — Validate document against XSD
$filename
) : boolUse 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.
锟剿猴拷锟斤拷锟斤拷锟斤拷 PHP 锟斤拷 libxml 20620 锟斤拷锟斤拷锟较版本锟斤拷锟斤拷时锟斤拷锟矫★拷