Web.Config itself is written in XML format right?
Yes, but in addition to that it has an XML schema associated and the Configuration class which is responsible to read values from this XML file verifies that the schema is being respected.
You should make the distinction between well formed XML
and valid XML
according to a schema.
solved why web.config has predefined tags? [closed]