VB.NET Read/Write to XML - 500 Points

my sample xml file (correct if wrong)
<?xml version="1.0" encoding="UTF-8"?>
<details>
      <mysettings>
            <server>192.168.1.1</server>
                <database>foo</database>
                <version>1.1</database>
      </mysettings>
</details>

Now i want to be able to read the values and update them if needed. Also i want to be able to create new keys.

Thank you in advance.

ztekAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
ericwong27Commented:
The easiest is using the VS 2005 Designer create the Application Settings.

To add application settings in the Project Designer

1. Select a project in Solution Explorer; on the Project menu, click Properties.
2. Select the Settings pane.
3. Click a blank row in the Settings grid.
4. Enter a name for the setting in the Name column. The name cannot contain spaces. e.g server
5. Select a data type for the setting from the Type drop-down list.
6. Select the scope of the setting from the Scope drop-down list. The setting's scope can be Application or User.
7. Enter a default value for the setting in the Value column. The value must be appropriate for the selected data type.

Update
My.Settings.Server = 192.168.1.1

Load
Server = My.Settings.Server


Other Reference
http://www.codeproject.com/vb/net/appsettings2005.asp

0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Visual Basic.NET

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.