> 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('baseConfigFileMap
> pedDrive')#\\#Variables.instance["CORPORATEID"]#\\#Arguments.f
> ileName#</VALUE>
>   </ELEMENT>
>   <!-- Overrides the Output file name -->
>   <ELEMENT>
>     <LOCATOR>TOOL(PropertyResults)/DATA_FILE</LOCATOR>
>     
> <VALUE>#Variables.instance['CONSTANTS'].get('baseConfigFileMap
> pedDrive')#\\#Variables.instance["CORPORATEID"]#\\#Arguments.f
> ileName#_Geocoded.csv</VALUE>
>   </ELEMENT>
> </DYNCONFIG>
> </cfxml>

I was able to run this ok:

<html>

<head>

<title>CFXML test</title>

</head>

<body>

<cfxml variable="xmlString" casesensitive="true">
<DYNCONFIG>
  <!-- Overrides the Input file name -->
  <ELEMENT>
    <LOCATOR>TOOL(PropertyCSV)/DATA_FILE</LOCATOR>
    <VALUE>test</VALUE>
  </ELEMENT>
  <!-- Overrides the Output file name -->
  <ELEMENT>
    <LOCATOR>TOOL(PropertyResults)/DATA_FILE</LOCATOR>
    <VALUE>test</VALUE>
  </ELEMENT>
</DYNCONFIG>
</cfxml>

<cfdump var="#xmlString#">

<cfdump var="#ToString(xmlString)#">

</body>

</html>

When I wrapped a CFSETTING ENABLECFOUTPUTONLY around it, though, I got the
same error you did.

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
phone: 202-797-5496
fax: 202-797-5444
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]

Reply via email to