We can use an Add Xml Element update action to insert a new app Settings value into the existing config file.This is what the v1 application configuration file might look like: But for v2, the configuration file might need to look like this: To migrate version 1 installations to version 2, in addition to replacing the application assemblies we must add a new entry to the app Settings collection.First we ask to user to input the roll no from for search records from the xml file.
In previous articles we explained How to insert data into xml file using Windows Application, in that article we described how to insert the records in to xml file for this we inserted student information in to xml file.
Modify the Existing Config File Using Xml Update Actions is great for adding elements and updating attributes.
As an example, let’s say that we use app Settings in our application and we need to add a new app Settings value in support of a new feature.
The Xml Reader class is used to read XML data in a fast, forward-only and non-cached manner. This example demonstrates reading XML data from the file Xml Public Class Form1 Private Sub Form1_Load(sender As Object, e As Event Args) Handles My Base.
Our article regarding, how to update data into xml file using Windows Application will be very useful for beginners to learn XML Operation’s.