Created
March 22, 2017 22:01
-
-
Save sirolad/73ecf37af7c29d7d15e47b5410fc2e12 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 XmlValidator; | |
$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