C
Christopher Ambler
Is there an example anywhere of how to create and consume XML configuration
information via code?
I've got a site for which I want to present the user with a web form for
configuration information and allow them to fill in the form and persist it
to an XML file on the web server. This XML file can then be read at run-time
for another page to use in constructing itself. The form code and
customization code I have done - but I'm wondering if there's a "best
practices" example on how to create and consume and XML config file.
I've come to the conclusion that using the DOM to write to the web.config is
a bad idea, since, as has been pointed out to me, it will cause a re-start
every time it's written.
Thanks in advance!
Christopher
information via code?
I've got a site for which I want to present the user with a web form for
configuration information and allow them to fill in the form and persist it
to an XML file on the web server. This XML file can then be read at run-time
for another page to use in constructing itself. The form code and
customization code I have done - but I'm wondering if there's a "best
practices" example on how to create and consume and XML config file.
I've come to the conclusion that using the DOM to write to the web.config is
a bad idea, since, as has been pointed out to me, it will cause a re-start
every time it's written.
Thanks in advance!
Christopher