summaryrefslogtreecommitdiff
path: root/ext/dom/examples/shipping.php
diff options
context:
space:
mode:
Diffstat (limited to 'ext/dom/examples/shipping.php')
-rw-r--r--ext/dom/examples/shipping.php11
1 files changed, 11 insertions, 0 deletions
diff --git a/ext/dom/examples/shipping.php b/ext/dom/examples/shipping.php
new file mode 100644
index 0000000..5205fd2
--- /dev/null
+++ b/ext/dom/examples/shipping.php
@@ -0,0 +1,11 @@
+<?php
+
+$dom = new domDocument;
+$dom->load('shipping.xml');
+if (!$dom->schemaValidate('shipping.xsd')) {
+ print "Document is not valid";
+} else {
+ print "Document is valid";
+}
+
+?> \ No newline at end of file