PHP 手冊
前一頁 |  | 下一頁

# DOMDocument->schemaValidate()

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

## Description

class DOMDocument {
bool schemaValidate ( string filename )
}

Validates a document based on a the given schema file.

## Parameters

filename

  The path to the schema.

## Return Values

成功回傳`TRUE`失敗回傳`FALSE`。

## 參考

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

前一頁 | 內容 | 下一頁
DOMDocument->saveXML() | 上一層 | DOMDocument->schemaValidateSource()