Back to index

php5  5.3.10
relaxNG.php
Go to the documentation of this file.
00001 <?php
00002 
00003 $dom = new domDocument;
00004 $dom->load('relaxNG.xml');
00005 if (!$dom->relaxNGValidate('relaxNG.rng')) {
00006   print "Document is not valid";
00007 } else {
00008   print "Document is valid";
00009 }
00010 
00011 ?>