I have php code that doesn’t work anymore
$doc = DOMDocument::loadXML($string);
$doc->formatOutput = true;
echo $doc->saveXML();
I’ve got error
Fatal error: Call to undefined method stdClass::saveXML() in /path/to/the/File on line 242
I’ve got PHP version 5.2.14
See the manual on DOMDocument:
and
$stringis most likely empty.