Thanks again, I will try that.

I have not managed to do away with the cfoutput tags however since  
often my XML return contains dynamically generated values, I think I  
therefore need the cfoutput.

But I discovered something else - and this is almost too stupid to  
comprehend and should be written on a warning sign when you install  
CF: in the CF admin under settings there is an option ‘Enable  
Whitespace Management’.  Guess what - it wasn't checked. Seems  
unchecked by default.

Checking it seems to eliminate *a lot* of leading whitespace issues I  
had. Could it be that without this checked the suppressWhiteSpace  
option of cfprocessingdirective does nothing at all?

Regards,

Stefan




On 24 Mar 2009, at 16:10, Dave Watts wrote:

>
>> So basically I am not doing anything inherently wrong, correct?
>
> No, not really.
>
>> When you say 'easier just to get rid of whitespace at design time  
>> if I care about it, '
>> what do you mean by that? Design time as in when it arrives on the  
>> FMS side?
>
> No, I mean on the CF side:
>
> <cfxml variable="userXML"><result action="none"
> status="error"><message>no action defined</message></result></cfxml>
>
> <cfcontent reset="yes"><cfoutput>#userXML#</cfoutput>
>
> The CFCONTENT tag will clear the output buffer so that you don't have
> any whitespace from the previous empty lines.
>
> 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!
>
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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/flex/message.cfm/messageid:5835
Subscription: http://www.houseoffusion.com/groups/flex/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.37

Reply via email to