Dan, I dunno the answer, it's faster for me to give you what works for me.
Maybe it'll help.
Here's my xml.cfm file.
<?xml version="1.0" encoding="iso-8859-1"?>
<settings>
<development>
<dsn>mylocalDSNname</dsn>
<mailserver>mail.wtomlinson.com</mailserver>
<productimagefilepath>C:/CFusionMX7/wwwroot/Store/productImages/</productimagefilepath>
<domainname>http://localhost:8500/NewWinstonCourtSports/Store/</domainname>
<erroremail>[EMAIL PROTECTED]</erroremail>
</development>
<production>
<dsn>myProductionDSNname</dsn>
<mailserver>mail.luckydogvolleyball.com</mailserver>
<productimagefilepath>D:/inetpub/luckydogvolleyball/Store/productImages/</productimagefilepath>
<domainname>http://www.luckydogvolleyball.com/Store/</domainname>
<erroremail>[EMAIL PROTECTED]</erroremail>
</production>
</settings>
Then here's where I read it with xmlParse() (CFMX7 only)
<cffunction name="loadApplicationVariables" returntype="void" output="false">
<cfset var serverName = "development">
<cfset var xmlFilePath =
"C:/cfusionmx7/wwwroot/NewWinstonCourtSports/Store/config.xml.cfm">
<cfset var key = "">
<cfset var thevalues = "">
<!--- Read and create a new CF XML document object--->
<cfset thevalues = XMLparse("#xmlFilePath#")>
<!--- Create a struct with the setting values--->
<cfset APPLICATION.settings = StructNew()>
<!--- Loop over the keys, saving their values to APPLICATION scope --->
<cfloop item="key" collection="#thevalues.settings[serverName]#">
<cfset APPLICATION.settings[key] =
thevalues.settings[serverName][key].xmltext>
</cfloop>
</cffunction>
HTH,
Will
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Create robust enterprise, web RIAs.
Upgrade & integrate Adobe Coldfusion MX7 with Flex 2
http://ad.doubleclick.net/clk;56760587;14748456;a?http://www.adobe.com/products/coldfusion/flex2/?sdid=LVNU
Archive:
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:265937
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe:
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4