sts/src/validateSTSXML.php
2023-01-30 18:33:10 +00:00

12 lines
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;
}
}
?>