Question : php simplexml to string
Answered by : alert-ape-xdd8nhkyf86u
<?php
// string to SimpleXMLElement
$xml = new SimpleXMLElement($string);
// make any changes.
....
// convert the SimpleXMLElement back to string.
$newString = $xml->asXML();
?>
Source : https://stackoverflow.com/questions/3690942/simplexml-to-string | Last Update : Thu, 29 Dec 22