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.
DOMDocument->relaxNGValidate()
(No version information available, might be only in CVS)
DOMDocument->relaxNGValidate() — Performs relaxNG validation on the document
설명
DOMDocument
bool relaxNGValidate
( string $filename
)
Performs » relaxNG validation on the document based on the given RNG schema.
매개변수
- filename
-
The RNG file.
반환값
성공할 경우 TRUE를, 실패할 경우 FALSE를 반환합니다.
DOMDocument->relaxNGValidate()
mitchell dot beaumont at mitchellbeaumont dot com
26-Aug-2007 07:28
26-Aug-2007 07:28
gem at rellim dot com
12-Oct-2004 05:36
12-Oct-2004 05:36
Creating an .rng file by hand is a PITA. Trang is a command line
java tool to save the day. Trang will read a sampling of your .xml and
create a .rng for you.
Get it here: http://thaiopensource.com/relaxng/trang.html
