I've got a strange XML problem, and I've got no idea where to start looking. Writing to an XML file worked fine when I used DOM methods, but I've switched to the simplexml method of loading it and then saving it with
Code: Select all
file_put_contents('filename.xml', $xml->asXML())Code: Select all
<?xml version="1.0"?>Now I have no idea what could cause this, but I suspect it has something to do with
Code: Select all
file_put_contents()Thanks!