WPF : Insert,Update,Delete In XML

Hello friends here I am explaining how to use XML as database to store information similar as SQL database. we can perform insert, update and delete operations in xml file using LINQ to XML. this two links provides basic overview about LINQ to XML : LINQ to XML And LINQ to XML Overview

Here I am create one WPF project to store user information in xml file. After creating project in main window I am designing one form as below image to insert user information.


Take data grid , two columns and add two button for update and delete. take another two buttons for add new user and refresh and text block to show no. of users. now take XML file in project as below image.


Now I am performing insert, update and delete operations using LINQ to XML.

Please download below word file and simply copy the rar file and run the project !!!!






Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s