How-to articles, tricks, and solutions about SIMPLEXML
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.
Remove a child with a specific attribute, in SimpleXML for PHP
You can remove a child element with a specific attribute in SimpleXML for PHP using the xpath() function.
SimpleXml to string
To convert a SimpleXml object to a string in PHP, you can use the asXML() function.