You don't have a root element in your XML document. The output will be something like this:
<?xml version="1.0" ?> <img ... /> <img ... /> <img ... /> XML documents can only have a single top-level tag, so you'll need to wrap your <img> tags with a container of some sort. cheers, barneyb On Fri, Jan 16, 2009 at 4:28 PM, Les Irvin <les.cft...@gmail.com> 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:318121 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4