mirror of
https://github.com/php/php-src.git
synced 2024-10-21 08:22:42 +00:00
11 lines
179 B
PHP
11 lines
179 B
PHP
|
<?php
|
||
|
|
||
|
$dom = new domDocument;
|
||
|
$dom->load('relaxNG.xml');
|
||
|
if (!$dom->relaxNGValidate('relaxNG.rng')) {
|
||
|
print "Document is not valid";
|
||
|
} else {
|
||
|
print "Document is valid";
|
||
|
}
|
||
|
|
||
|
?>
|