Created
March 17, 2014 16:34
-
-
Save extstopcodepls/9602930 to your computer and use it in GitHub Desktop.
php validate of xml
This file contains hidden or 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 | |
| $dom = new DOMDocument; | |
| $dom->load('studenci.xml'); | |
| if($dom->relaxNGValidate('xml.rng')) | |
| { | |
| echo "udało się \n"; | |
| } | |
| else | |
| { | |
| echo "nie udało się \n"; | |
| } | |
| ?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment