DOMDocument
PHP 手册

DOMDocument::schemaValidateSource

(PHP 5)

DOMDocument::schemaValidateSource Validates a document based on a schema

说明

public bool DOMDocument::schemaValidateSource ( string $source )

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

参数

source

A string containing the schema.

返回值

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

参见


DOMDocument
PHP 手册