1
0
mirror of https://github.com/php/php-src.git synced 2026-03-25 16:52:18 +01:00
Files
archived-php-src/ext/dom/examples/note.php
2003-10-09 05:46:03 +00:00

20 lines
392 B
PHP

<?php
$dom = new domDocument;
$dom->load('note.xml');
if (!$dom->validate('note.dtd')) {
print "Document note.dtd is not valid\n";
} else {
print "Document note.dtd is valid\n";
}
$dom = new domDocument;
$dom->load('note-invalid.xml');
if (!$dom->validate('note.dtd')) {
print "Document note-invalid.xml is not valid\n";
} else {
print "Document note-invalid.xml is valid\n";
}
?>