>Thanks for this, it is really a great help, I may get a good nights >sleep now! > >-----Original Message----- >From: Taco Fleur [mailto:[EMAIL PROTECTED] >Sent: 18 November 2004 19:50 >To: CF-Talk >Subject: RE: SQL Query using 'FOR XML' & Coldfusion
Rob, quick query, when I use the following code <cfxml variable="xmldoc"> <root> <cfloop from="1" to="#xmltest.recordcount#" index="x"><cfoutput>#xmltest[xmltest.columnlist][x]#</cfoutput></cfloop> </root> </cfxml> If I then use '<cfset xmlPage = xmlParse(xmldoc)>' I get the following error 'Document root element is missing' any idea why? It doesn't really matter if nobody knows because I can still extract the XML data that I require but I do like to parse all of my XML data before working with it, just habit I guess! ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Special thanks to the CF Community Suite Gold Sponsor - CFHosting.net http://www.cfhosting.net Message: http://www.houseoffusion.com/lists.cfm/link=i:4:184850 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

