title: How check if a String is a Valid XML with-out Displaying a Warning in PHP
body: <p>i was trying to check the validity of a string as xml using this  <a href="http://php.net/simplexml_load_string" rel="noreferrer"><code>simplexml_load_string()</code><sup><em>Docs</em></sup></a> function but it displays a lot of warning messages.</p>
  
  <p>How can I check whether a string is a valid XML without suppressing (<a href="http://php.net/language.operators.errorcontrol" rel="noreferrer"><code>@</code> at the beginning</a>) the error <strong>and</strong> displaying a warning function that expec</p>