i was trying to check the validity of a string as xml using this simplexml_load_string()Docs function but it displays a lot of warning messages.
How can I check whe
try this one
//check if xml is valid document public function _isValidXML($xml) { $doc = @simplexml_load_string($xml); if ($doc) { return true; //this is valid } else { return false; //this is not valid } }