Conversion from MySQL to XML