Please note that you must also specify xmlns="http://relaxng.org/ns/structure/1.0" in external patterns you are including using <externalRef/>
DOMDocument::relaxNGValidate
(PHP 5)
DOMDocument::relaxNGValidate — ドキュメントを relaxNG で検証する
説明
bool DOMDocument::relaxNGValidate
( string $filename
)
指定した RNG スキーマに基づいて、ドキュメントを » relaxNG で検証します。
パラメータ
- filename
-
RNG ファイル。
返り値
成功した場合に TRUE を、失敗した場合に FALSE を返します。
参考
- DOMDocument::relaxNGValidateSource - ドキュメントを relaxNG で検証する
- DOMDocument::schemaValidate - スキーマに基づいてドキュメントを検証する
- DOMDocument::schemaValidateSource - スキーマに基づいてドキュメントを検証する
- DOMDocument::validate - DTD に基づいてドキュメントを検証する
DOMDocument::relaxNGValidate
flavius dot as at gmail dot com
22-May-2008 05:26
22-May-2008 05:26
mitchell dot beaumont at mitchellbeaumont dot com
27-Aug-2007 11:28
27-Aug-2007 11:28
It's worth noting that when validation fails this function also triggers a warning.
You can suppress the warning using the set_error_handler and restore_error_handler functions.
