Returning the XML directly via SQL Server is much, MUCH more efficient than processing the file in ColdFusion. SQL Server has a few functions that allows you to customize the XML output. I use the FOR XML EXPLICIT command which allows you to specify the tag names for example:
SELECT DISTINCT 1 AS TAG, NULL AS PARENT, A.vendorid AS [vendorrecord!1!vendorid!element], A.datecreated AS [vendorrecord!1!created!element], Str(Month(A.datecreated)) + '/' + Str(Day(A.datecreated)) + '/' + Str(Year(A.datecreated)) AS [vendorrecord!1!datecreated!element] FROM Vendors A FOR XML EXPLICIT This will create the file with each column as an element. A great reference for this can be found in "The Gurus Guide to SQL Server Stored Procedures, XML and HTML" by Ken Henderson. HTH -- Donnie Bachan Website: http://www.islandwizards.com Blog: http://angrytrini.blogspot.com "Nitendo Vinces - By Striving You Shall Conquer" ====================================================================== The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete the material from any computer. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:218708 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

