1--TEST-- 2DOMDocument::relaxNGValidate() 3--CREDITS-- 4Knut Urdalen <knut@php.net> 5--SKIPIF-- 6<?php 7require_once('skipif.inc'); 8?> 9--FILE-- 10<?php 11$rng = dirname(__FILE__).'/DOMDocument_relaxNGValidate_basic.rng'; 12$xml = <<< XML 13<?xml version="1.0"?> 14<apple> 15 <pear>Pear</pear> 16</apple> 17XML; 18$doc = new DOMDocument(); 19$doc->loadXML($xml); 20$result = $doc->relaxNGValidate($rng); 21var_dump($result); 22?> 23--EXPECTF-- 24bool(true) 25