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 !!!!