I've had similar issues with using / generating xml with Coldfusion. For
your particular issue, I used the <cfsilent> tag as well as <cfsetting
enabledebuggingoutput="no"> to stop any extra characters from showing up...

I believe it was Emmet who actually found some hidden characters before the
xml that couldn't be seen in notepad with a hex editor...

Cheers,

Kevin

-----Original Message-----
From: Dave Watts [mailto:[EMAIL PROTECTED]
Sent: Tuesday, June 14, 2005 1:56 PM
To: CF-Talk
Subject: RE: can dump or cfoutput, but can not open in application-xml?


> The doc downloaded from local server has a few line spaces at
> the beginning. Now I know that this is why it keeps showing
> the error message. Why does it create these line spaces?

Presumably, because you have some server-side code that is being executed,
and once that code is executed the client just receives the blank line where
the code would have been. Why don't you get rid of the white space using the
RESET attribute of the CFCONTENT tag, right before your content?

<cfwhatever ...>
.....
</cfwhatever>

<cfcontent type="whateverMIMEtypeyou'reusing" reset="yes"><?xml
version="1.0" ...

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/

Fig Leaf Software provides the highest caliber vendor-authorized
instruction at our training centers in Washington DC, Atlanta,
Chicago, Baltimore, Northern Virginia, or on-site at your location.
Visit http://training.figleaf.com/ for more information!




~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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:209474
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=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to