root/ext/dom/examples/relaxNG.php

/* [<][>][^][v][top][bottom][index][help] */
<?php

$dom = new domDocument;
$dom->load('relaxNG.xml');
if (!$dom->relaxNGValidate('relaxNG.rng')) {
  print "Document is not valid";
} else {
  print "Document is valid";
}


/* [<][>][^][v][top][bottom][index][help] */