I wasn't trying to get you an XML document, just to show you that you had stuff in the wrong order. The idea of cfsavecontent is that you can generate a bunch of stuff. In your case, you're generating it from a query. But, I could just as easily do this: <cfsavecontent variable="xml"><?xml version="1.0"?> <header>This is my header</header> </cfsavecontent>
All the above is doing is bundling up that multi-line variable so you can use it later. Then, "later" you can output it as xml: <cfcontent type="text/xml"><cfoutput>#xml#</cfoutput> If you have debugging turned on for your IP, be sure to kill it for this page. The following code should give you a properly formatted XML document with one thing in it (header). <cfsavecontent variable="xml"><?xml version="1.0"?> <header>This is my header</header> </cfsavecontent> <cfsetting showdebugoutput="no"> <cfcontent type="text/xml"><cfoutput>#xml#</cfoutput> On 11/15/05, daniel kessler <[EMAIL PROTECTED]> wrote: > > I pasted that in directly as-is and received the same error: > error on line 1 at column 1: Document is empty > > I tested that it has a recordset. Is it empty cause I'm not exporting > formatted xml? I suppose not. > Also, I noticed that the cfoutput is there twice in that code. Is that > intended? Also the query name isn't referenced after the query is made. Is > that also intended? I added the query name to the cfoutputs but received no > change to the error. > > Sorry to be so bugger-dense about this. > > ><cfquery name="retrieve_xml" datasource="dpch"> > >SELECT header FROM whats_new > ></cfquery> > > > ><cfsetting enablecfoutputonly="true"/> > ><cfsetting showdebugoutput="false"/> > > > ><cfsavecontent variable="header"> > ><cfoutput> > >#header# > ></cfoutput> > ></cfsavecontent> > ><cfcontent type="text/xml"><cfoutput>#header#</cfoutput> > > > >On 11/15/05, daniel kessler <[EMAIL PROTECTED]> wrote: > >> > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| 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:224239 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

