![]() ![]() | ![]() |
Initial revision
--TEST-- DOMDocument::relaxNGValidate() --CREDITS-- Knut Urdalen <knut@php.net> --SKIPIF-- <?php require_once('skipif.inc'); ?> --FILE-- <?php $rng = dirname(__FILE__).'/DOMDocument_relaxNGValidate_basic.rng'; $xml = <<< XML <?xml version="1.0"?> <apple> <pear>Pear</pear> </apple> XML; $doc = new DOMDocument(); $doc->loadXML($xml); $result = $doc->relaxNGValidate($rng); var_dump($result); ?> --EXPECTF-- bool(true)