After updating and deleting element from an XML config file, lets see how to add new elements at the desired position in an XML file. We will again take the same web.config file , which we took in the first example and save it at C:\MyApplication <?xml