I have created a MySQL table and would like to save the contents of the table in an XML file for use by other applications. I can access the data fine and echo the data on a broswer window, but on saving using the DomDocument::save(‘thexmlfile.xml’), I cannot see any new files created in the directory location of the running PHP file.
Share
you will have to create the dom xml from the mysql data and then save it in an xml file.An example:
Now, you should see the xml file.
Hope, it helps.