Last active
March 22, 2017 21:29
-
-
Save sirolad/fa573d4fbf23b41575f39f97b21a85f3 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$validator = new DomValidator; | |
$validated = $validator->validateFeeds('sample.xml'); | |
if ($validated) { | |
echo "Feed successfully validated"; | |
} else { | |
print_r($validator->displayErrors()); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment