xref: /PHP-7.2/ext/dom/examples/relaxNG.php (revision 60a69dae)
1<?php
2
3$dom = new domDocument;
4$dom->load('relaxNG.xml');
5if (!$dom->relaxNGValidate('relaxNG.rng')) {
6  print "Document is not valid";
7} else {
8  print "Document is valid";
9}
10
11?>
12