Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8231359
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T17:27:41+00:00 2026-06-07T17:27:41+00:00

I am currently using an adhoc xml file to save configuration settings and it’s

  • 0

I am currently using an adhoc xml file to save configuration settings and it’s working but it’s not where it needs to be.

It goes something like this:

<XmlDoc>

    <DefaultSettings>
        <ExitProgramMessage>Y</ExitProgramMessage>
    <DefaultSettings>

    <Company>
        <ExitProgramMessage>N</ExitProgramMessage>
    <Company>

    <Workstation>
        <ExitProgramMessage>N</ExitProgramMessage>
    </Workstation>

    <User>
        <ExitProgramMessage>Y</ExitProgramMessage>
    <User>

<XmlDoc>

The way the code is written is that the DefaultSettings is read first, then the Company (which overwrites the DefaultSettings), then the Workstation settings (which overwrites the DefaultSettings or Company Settings), then the Workstations, then User… last read wins, with the exception of blanks. They do not clear a fields. In the example above the ExitProgramMessage would end up being Y.

I’m running into several problems.

  1. I cannot easily add more levels since they are hardcoded
  2. I have to read each node manually since it’s not in standard xml format which means the file needs to be manually edited, which always causes problems.

It’s just not easy to use and definitely is not intuitive.

So, with that being said, how should I implement this where I can create a screen to update the settings?

Is xml the right way to go? Should I go a different route with this? We do not have the option of a database yet, only flat files.

Also, these settings reside on a server that has a shared drive where network users access. So, these cannot be settings saved in the registry or anything specific to the user.

Any ideas would be greatly appreciated.

Thanks!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-07T17:27:44+00:00Added an answer on June 7, 2026 at 5:27 pm

    My suggestion for your scenario will be to look into Settings.Properties you can haev any type in them and update them at runtime

    A very good example using Settings.Properties is you can save the state of you application in them

    See link for more information

    http://msdn.microsoft.com/en-us/library/aa730869(v=vs.80).aspx

    http://msdn.microsoft.com/en-us/library/bb397755.aspx

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Currently using: @^(ht|f)tp(s?)\:\/\/[0-9a-zA-Z]([-.\w]*[0-9a-zA-Z])*(:(0-9)*)*(\/?)([a-zA-Z0-9\-\.\?\,\'\/\\\+&amp;%\$#_]*)?$ How can i make http:// not compulsory but if it does
Currently using Google Analytics as a supplement to our paid tracking software, but neither
currently using spring 'exposedContextBeanNames' to allow me to display properties in my view but
Im currently using jquery to link all td's to the edit link but i
Currently using the HTTPServletRequest class and specifically the .getQueryString method to retrieve an inputted
Currently using MySQL version 5.1.6 This is my first real world build and so
Currently using Xcode 4.2 and I have two view controllers (1 and 2). I
I currently using android NDK to write some native code in C. I have
I'm currently using the NEST ElasticSearch C# Library for interacting with ElasticSearch. My project
I'm currently using inline javascript to clear an input text's default value on focus.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.