sts/src/validateSTSXML.php

12 lines
241 B
PHP
Raw Normal View History

2023-01-30 19:33:10 +01:00
<?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;
}
}
?>