Output MySQL query results to XML from the command prompt
In a previous tutorial I wrote about the ability to export MySQL query results out to a CSV file via the command prompt. There is another method for getting your query results into a file without using a server-side language, and it involves command line startup options. In this example I will push the results to XML, although an HTML option is available as well. Continue reading.