Generate XML from php mysql database after query

Asked

Viewed 1,143 times

2

How to generate an xml file from a database after a query and then automatically download?

  • is the xml of the database with all tables and fields? has some model of what would be the output?

  • @rray have no practical example of how it would be, sorry.

1 answer

1


Dude, to answer your very comprehensive question and with very little detail, there is a PHP class called Simplexml that you can generate almost anything you want in XML from any data type...

Take a look here for the class reference. And for something more specific I found this function here that from a string, loads a file.

I hope I’ve helped.

  • Thank you Ruggi!

  • @theflash if answered your question, mark her as answered... Thank you!

Browser other questions tagged

You are not signed in. Login or sign up in order to post.