Create new XML file and write data to it?

Tags: php xml file

I need to create a new XML file and write that to my server. So, I am looking for the best way to create a new XML file, write some base nodes to it, save it. Then open it again and write more data.

I have been using file_put_contents() to save the file. But, to create a new one and write some base nodes I am not sure of the best method.



With FluidXML you can generate and store an XML document very easily.

$doc = fluidxml();


This video can help you solving your question :)
By: admin