> 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]
- 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
- RE: cfset vs. cfsavecontent Barney Boisvert
- Re: cfset vs. cfsavecontent S . Isaac Dealey