downloads | documentation | faq | getting help | mailing lists | licenses | wiki | reporting bugs | php.net sites | conferences | my php.net

search for in the

XMLReader::XML> <XMLReader::setRelaxNGSchemaSource
[edit] Last updated: Fri, 24 Jun 2011

view this page in

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.

See Also



add a note add a note User Contributed Notes XMLReader::setSchema - [0 notes]
There are no user contributed notes for this page.

 
show source | credits | sitemap | contact | advertising | mirror sites