xref: /PHP-7.0/ext/dom/examples/shipping.php (revision 87bd7d57)
1<?php
2
3$dom = new domDocument;
4$dom->load('shipping.xml');
5if (!$dom->schemaValidate('shipping.xsd')) {
6  print "Document is not valid";
7} else {
8  print "Document is valid";
9}
10
11?>