In PHP, i have a $string that contains XML-structured data.
How can i create and save a XML file from $string?
Appreciate any help.
You can use DOM to load the XML string http://www.php.net/manual/en/domdocument.loadxml.php
and then use DOM to save the XML to file http://www.php.net/manual/en/domdocument.save.php