PHP 手册
后退 |  | 前进

# DOMDocument->schemaValidate()

(no version information, might be only in CVS)

DOMDocument->schemaValidate() -- Validates a document based on a schema

## 说明

class DOMDocument {
bool schemaValidate ( string filename )
}

Validates a document based on the given schema file.

## 参数

filename

  The path to the schema.

## 返回值

如果成功则返回 `TRUE`，失败则返回 `FALSE`。

## 参见

DOMDocument->schemaValidateSource()
DOMDocument->relaxNGValidate()
DOMDocument->relaxNGValidateSource()
DOMDocument->validate()

后退 | 起点 | 前进
DOMDocument->saveXML() | 上一级 | DOMDocument->schemaValidateSource()