in reply to SQL to XML
Have you tried just concatenating the files?
Unless you tell us how the XML file should be structured, we cannot help you.