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]

Reply via email to