---
title: "what is the benefits of XML based configuration file ?"  
description: "what is the benefits of XML based configuration file ?"  
author: "Anonymous User"  
published: 2020-01-20  
updated: 2020-01-20  
canonical: https://www.mindstick.com/forum/155708/what-is-the-benefits-of-xml-based-configuration-file  
category: "asp.net"  
tags: ["asp.net"]  
reading_time: 1 minute  

---

# what is the benefits of XML based configuration file ?

Give me the [detailed](https://yourviews.mindstick.com/view/84608/what-are-hindenburg-s-allegations-against-adani-detailed-explanation) description of [XML](https://www.mindstick.com/blog/203/working-with-xml-data-in-sql-server) based [configuration file](https://www.mindstick.com/forum/155707/what-is-the-usage-of-asp-dot-net-configuration-file) along with what [web.config](https://www.mindstick.com/forum/183/web-config-file) file contains and how it looks.

## Replies

### Reply by Nishi Tiwari

## Benefits of XML-based Configuration files

- **[ASP.NET Configuration systems](https://www.mindstick.com/forum/155709/what-are-the-different-types-of-configuration-files)** are extensible and application specific information can be stored and retrieved easily. It is a human readable [file](https://www.mindstick.com/articles/59/encrypting-and-decrypting-files-using-c-sharp).
- We need not restart the web server when the settings are changed in configuration file. In ASP.NET automatically detects the changes and automatically applies them to the running ASP.NET application.
- We can use any standard text editor or XML parser to create and edit ASP.NET configuration files.

## What Web.config file contains?

There are many number of important settings that can be stored in the configuration file. Some of the most frequently used configurations files which are stored conveniently inside Web.config file are:

- Database connections
- Caching settings
- Session States
- Error Handling
- Security

Configuration file looks like this

```
1.	<configuration>
2.	    <connectionStrings>
3.	        <add name="myCon" connectionString="server=MyServer;database=puran;uid=puranmehra;pwd=mydata1223" />
4.	  </connectionStrings>
5.	</configuration/>
```


---

Original Source: https://www.mindstick.com/forum/155708/what-is-the-benefits-of-xml-based-configuration-file

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
