SQL result to XML.