-
September 13th, 2009, 10:14 PM
#1
when to read configuration file
Hi all..i have doubt abt the use of configuration files.
I am working on an application which needs to read a variable from an xml configuration file. The value is valid only when a particular event is raised by the user.
Which is a good design solution? To go for initial read using SAX or provide the user with a mechanism to write to the xml when that event is raised and then continue with the operation using DOM?
I feel SAX being simple and light on memory must be implemented for this..but then am not so sure if its a user friendly solution to make the user edit config files before loading application.
pls reply soon
-
September 14th, 2009, 12:57 PM
#2
Re: when to read configuration file
What environment is your app running in? What technologies are you using?
-
September 17th, 2009, 01:35 AM
#3
Re: when to read configuration file
i am developing code in visual studio integration for qt...
C++ is language.
-
September 17th, 2009, 04:21 PM
#4
Re: when to read configuration file
If the application has a UI, why not let the user make the change in the application?
Underneath the covers, you can write the users changes to the xml and reread the xml file.
If the xml file is small, just read the file with the DOM.
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|