I am needing 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.
Ideas?