How-to articles, tricks, and solutions about LIBXML2
How check if a String is a Valid XML with-out Displaying a Warning in PHP
In PHP, you can use the simplexml_load_string function to check if a string is a valid XML without displaying a warning.