VB.NET Read/Write to XML - 500 Points

Posted on 2006-04-03
Last Modified: 2006-11-18
my sample xml file (correct if wrong)
<?xml version="1.0" encoding="UTF-8"?>

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.

Question by:ztek
    LVL 6

    Accepted Solution

    LVL 10

    Expert Comment

    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.

    My.Settings.Server =

    Server = My.Settings.Server

    Other Reference


    Featured Post

    6 Surprising Benefits of Threat Intelligence

    All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

    Join & Write a Comment

    Article by: jpaulino
    XML Literals are a great way to handle XML files and the community doesn’t use it as much as it should.  An XML Literal is like a String ( Literal, only instead of starting and ending with w…
    Article by: Kraeven
    Introduction Remote Share is a simple remote sharing tool, enabling you to see, add and remove remote or local shares. The application is written in VB.NET targeting the .NET framework 2.0. The source code and the compiled programs have been in…
    It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
    Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

    728 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    21 Experts available now in Live!

    Get 1:1 Help Now