I am new in c# programming and i would like to create a small database in XML file for educational purpose.
The question is which way is proper or more editable when I create a small database in XML?
For example:
//////////Example 1////////////////
8th Street/
//////////////////////////////////
//////////Example 2////////////////
//////////////////////////////////
I would like to highlight here that i need to Add,Rename/Edit,Remove and Search students.


VulpesRank #55 · 29.2K reputationPosted Dec 10, 2012, 5:55 AM EST
You might also like to read what W3Schools have to say on the matter:
http://www.w3schools.com/dtd/dtd_el_vs_attr.asp
Seny8 reputationPosted Dec 10, 2012, 6:15 AM EST
Here is the XML File examlpe:
////////////////////////////////////////////////
8th Street/
9th Street/
////////////////////////////////////////////////
VulpesRank #55 · 29.2K reputationPosted Dec 10, 2012, 6:37 AM EST
Suppose now that you want to delete Nick Young from the file. The following LINQ to XML code will do it:
After running this code, the file should look like this: