You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
12 lines
241 B
PHTML
12 lines
241 B
PHTML
1 year ago
|
<?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;
|
||
|
}
|
||
|
}
|
||
|
?>
|