This method should throw exceptions instead of returning false and causing php warnings if a validation fails! What if you want to feed the error message back to the user?! Guys, please get your act together... please!
DOMDocument::relaxNGValidate
(No version information available, might be only in CVS)
DOMDocument::relaxNGValidate — Performs relaxNG validation on the document
Description
bool DOMDocument::relaxNGValidate
( string $filename
)
Performs » relaxNG validation on the document based on the given RNG schema.
Parameters
- filename
-
The RNG file.
Return Values
Returns TRUE on success or FALSE on failure.
DOMDocument::relaxNGValidate
Chris
08-Aug-2008 08:57
08-Aug-2008 08:57
flavius dot as at gmail dot com
22-May-2008 04:26
22-May-2008 04:26
Please note that you must also specify xmlns="http://relaxng.org/ns/structure/1.0" in external patterns you are including using <externalRef/>
