I have a XML file with a whole bunch of configuration settings, that
i load into my configuration bean. It's worked reliably up to now,
but i decided to break the XML file into separate files containing the
different kinds of settings, and the import isnt working. Can anyone
see the problem please?
The original config.xml file (which works ok) is of the following format:
<settings>
<globals>
<sitename>Name of this site</sitename>
.... other global settings ..
</globals>
<paths>
<absolutesitepath>e:\sites\domains\domain.com\wwwroot</absolutesitepath>
<urlsitepath>http://www.domain.com</urlsitepath>
.... other path settings
</paths>
<miscsettings>
<mailpassword>mailpassword</mailpassword>
.... other miscellaneous settings
</miscsettings>
</settings>
I had the idea of breaking the globals, paths, and other settings out
into 3 separate XML files, to make them easier to manage as the number
of settings grew. So i created a global.xml file, and it contains
the following:
<globals>
<sitename>Name of this site</sitename>
.... other global settings ..
</globals>
(plus similar for the other two parts of the confix.xml file) and
replaced that content in the original config.xml file as follows:
<settings>
<import resource="/cfcs/config/siteresources/globals.xml"/>
<import resource="/cfcs/config/siteresources/paths.xml"/>
<import resource="/cfcs/config/siteresources/miscsettings.xml"/>
</settings>
This technique works fine for my coldspring xml file, but isnt
working here. The only difference (i think) is that there is an
additional level in this xml setup to the coldspring setup. But can
anyone see why this isnt working?
--
Cheers
Mike Kear
Windsor, NSW, Australia
Adobe Certified Advanced ColdFusion Developer
AFP Webworks
http://afpwebworks.com
ColdFusion, PHP, ASP, ASP.NET hosting from AUD$15/month
--
You received this message because you are subscribed to the Google Groups
"cfaussie" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/cfaussie?hl=en.