On Mon, 19 Jul 2004 17:11:27 -0400, Dave Watts <[EMAIL PROTECTED]> wrote:
> > I have a CFC where I'm writing the contents of a config file
> > for a 3rd party engine. However, if I use cfsavecontent (my
> > preferred approach), the XML string never gets written.
>
> Why not just use the CFXML tag? That's exactly what it's for, I think.
>
I was trying to use that (that was my first attempt), but I kept
getting a "Document root element is missing" error using the code
below. If you happen to see anything wrong with the below syntax, I'm
all eyes, as that's the cleanest way to write the code (mind you, I
have no control over the XML syntax, as it's the 3rd party's product).
<cfxml variable="xmlString" casesensitive="true">
<DYNCONFIG>
<!-- Overrides the Input file name -->
<ELEMENT>
<LOCATOR>TOOL(PropertyCSV)/DATA_FILE</LOCATOR>
<VALUE>#Variables.instance['CONSTANTS'].get('baseConfigFileMappedDrive')#\\#Variables.instance["CORPORATEID"]#\\#Arguments.fileName#</VALUE>
</ELEMENT>
<!-- Overrides the Output file name -->
<ELEMENT>
<LOCATOR>TOOL(PropertyResults)/DATA_FILE</LOCATOR>
<VALUE>#Variables.instance['CONSTANTS'].get('baseConfigFileMappedDrive')#\\#Variables.instance["CORPORATEID"]#\\#Arguments.fileName#_Geocoded.csv</VALUE>
</ELEMENT>
</DYNCONFIG>
</cfxml>
Regards,
Dave.
[Todays Threads]
[This Message]
[Subscription]
[Fast Unsubscribe]
[User Settings]
[Donations and Support]
- cfset vs. cfsavecontent Dave Carabetta
- RE: cfset vs. cfsavecontent Barney Boisvert
- Re: cfset vs. cfsavecontent Dave Carabetta
- RE: cfset vs. cfsavecontent Barney Boisvert
- RE: cfset vs. cfsavecontent Dave Watts
- RE: cfset vs. cfsavecontent Dave Carabetta
- RE: cfset vs. cfsavecontent Dave Watts
- RE: cfset vs. cfsavecontent Ian Skinner
- Re: cfset vs. cfsavecontent Dave Carabetta
- RE: cfset vs. cfsavecontent Dave Watts
- Re: cfset vs. cfsavecontent Dave Carabetta
- Re: cfset vs. cfsavecontent Stephen Moretti (cfmaster)
- Re: cfset vs. cfsavecontent S . Isaac Dealey
- Re: cfset vs. cfsavecontent Dave Carabetta
- RE: cfset vs. cfsavecontent Hugo Ahlenius
- Re: cfset vs. cfsavecontent Dave Carabetta