转:http://blog.youkuaiyun.com/OpenHero/archive/2007/03/06/1522017.aspx
http://libmyxql.sourceforge.net/
The libmyxql library provides an array of functions, which can be used to create XML output directly from MySQL using a single SQL query. This prevents having to convert a MySQL result to XML in a PHP script, Ruby script, etc. This improves performance and simplifies your code.