Note : This post is first published on Dec-2010 in my previous blog Techkindle. Moving the content here.

Creation of XML file is very much easy with the existing class library in the .NET framework with C#. Although we can create many complex XML files, here I have presented a simple application which is easy to understand, it create & stores the XML file in text file. It retrieves the XML file & displays the data.

Output

Created XML File:

Retrieved XML data:

Happy Learning 🙂