> > 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.
Interesting. On a hunch after looking through your sample above, I
switched back to cfxml and simply put cfoutput after the opening cfxml
and before the closing cfxml tag, and then did a cfreturn
toString(xmlObject) and it worked fine.
At this point, I guess I need to settle on what's more intuitive for
the developer who comes after me, but that's a different matter.
Thanks for taking the time to help.
Regards,
Dave.
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]

