12 lines
		
	
	
		
			No EOL
		
	
	
		
			241 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
			
		
		
	
	
			12 lines
		
	
	
		
			No EOL
		
	
	
		
			241 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
| <?php
 | |
|   libxml_use_internal_errors(true);
 | |
|   function validateXML($xmlstr,$type): bool{
 | |
|     if($type=="flags"){
 | |
|       $_xml=simplexml_load_string($xmlstr);
 | |
|       if($_xml===false){
 | |
|         return false;
 | |
|       }
 | |
|       return true;
 | |
|     }
 | |
|   }
 | |
| ?>
 | 
