DOMDocument
PHP 手册

DOMDocument::schemaValidate

(PHP 5)

DOMDocument::schemaValidate Validates a document based on a schema

说明

public bool DOMDocument::schemaValidate ( string $filename )

Validates a document based on the given schema file.

参数

filename

The path to the schema.

返回值

成功时返回 TRUE, 或者在失败时返回 FALSE

参见


DOMDocument
PHP 手册