XMLReader::setSchema
(PHP 5 >= 5.2.0)
XMLReader::setSchema — تایید صحت سند نسبت به XSD
Description
bool XMLReader::setSchema
( string $filename
)
از W3C XSD schema برای تایید صجت سند در حین پردازش استفاده کنید. فعالسازی تنها پیش از اولین Read() ممکن است.
Parameters
- filename
-
نام فایل XSD schema.
Return Values
Returns TRUE on success or FALSE on failure.
Errors/Exceptions
ایجاد E_WARNING اگر libxml بدون پشتیبانی از schema ساخته شده باشد schema شامل خطا باشد یا اگر XMLReader::read() پیش از این فراخوانده شده باشد.
Notes
Caution
This function is only available when PHP is compiled against libxml 20620 or later.
There are no user contributed notes for this page.
