Back to index

php5  5.3.10
note.php
Go to the documentation of this file.
00001 <?php
00002 
00003 $dom = new domDocument;
00004 $dom->load('note.xml');
00005 if (!$dom->validate('note.dtd')) {
00006   print "Document note.dtd is not valid\n";
00007 } else {
00008   print "Document note.dtd is valid\n";
00009 }
00010 
00011 $dom = new domDocument;
00012 $dom->load('note-invalid.xml');
00013 if (!$dom->validate('note.dtd')) {
00014   print "Document note-invalid.xml is not valid\n";
00015 } else {
00016   print "Document note-invalid.xml is valid\n";
00017 }
00018 
00019 ?>