On Mon, 19 Jul 2004 14:23:16 -0700, Ian Skinner
<[EMAIL PROTECTED]> wrote:
> Not 100% sure, but my first guess would be an arrant blank line.
>
> <cfxml variable="xmlString" casesensitive="true">
> <DYNCONFIG>
>
> <cfsavecontent variable="xmlString"><?xml version="1.0"
> encoding="UTF-8" standalone="no"?>
> <DYNCONFIG>
>
> <cfset xmlString = '<?xml version="1.0" encoding="UTF-8"
> standalone="no"?><DYNCONFIG><!-- Overrides the Input file name
>  
> The first two options each of these has a return at the end of the tag, this counts in the generated output and would put a blank line at the top of the file you are trying to create.  IIRC, this is not liked by XML parsers.  Try removing the return so that your XML starts on the same line as the <cfxml...> or the <cfsavecontent...> tag.  Hopefully that helps.
>
> XML generation is one of the few places in ColdFusion where coding style visa-vis white space and returns matter.
>

Nah, I've tried that already. Besides, none of the examples I have
seen/used with the cfxml tag cared if the root node was on the same
line as the opening cfxml tag, and they seem to work fine. However,
white space does indeed matter with cfsavecontent in my situation,
which is why I have the opening <?xml?> declaration on the same line
as the opening cfsavecontent.
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]

Reply via email to