it should have a root element. <cfxml variable="GalDoc"> <xmldoc> <?xml version="1.0" ?> <cfloop index="LC" from="1" to="20"> <cfoutput> <img src="../160_#z#.jpg" width="540" height="360" /> <cfset z=z+1> </cfoutput> </cfloop> </xmldoc> </cfxml> you really dont use it but this is how you write.
On Fri, Jan 16, 2009 at 7:28 PM, Les Irvin <[email protected]> wrote: > I'm trying to have CF write a painfully simple xml file, basically > just a list of sequentially numbered image tags. I keep getting this > error: > "The markup in the document following the root element must be > well-formed." > Can anyone help? > Thanks, > Les > > <cfxml variable="GalDoc"> > <?xml version="1.0" ?> > <cfloop index="LC" from="1" to="20"> > <cfoutput> > <img src="../160_#z#.jpg" width="540" height="360" /> > <cfset z=z+1> > </cfoutput> > </cfloop> > </cfxml> > > <cffile action="write" file="#directory#gallery.xml" > output="#ToString(GalDoc)#"> > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;207172674;29440083;f Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:318122 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

