DOM
PHP Manual

DOMDocument->schemaValidateSource()

(No version information available, might be only in CVS)

DOMDocument->schemaValidateSource() — Validates a document based on a schema

说明

DOMDocument
bool schemaValidateSource ( string $source )

Validates a document based on a schema defined in the given string.

参数

source

A string containing the schema.

返回值

如果成功则返回 TRUE,失败则返回 FALSE

参见


DOM
PHP Manual