System.Configuration with XSL or XInclude

M

Mike Blake-Knox

I would like to have my application configuration data split so that
application specific information is stored in one XML file while user
specific information is stored in a separate file.

Is there a way to use either XInclude or an XSL stylesheet to merge the
data and still use System.Configuration.ConfigurationSettings.GetConfig
to access the data?

Thanks.

Mike Blake-Knox
 
G

Guest

I know of no built-in way of doing this, but it would be fairly simple to define a custom config handler to accomplish it

IConfigurationSectionHandler defines only one method, Create, which return an object. You could retrieve the path to your satellite file from the main config file, load the data you need from the satellite file and fetch it via ConfigurationSettings.GetConfig("MySection").
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top