How to Update Data into XML File using Windows Application.
Since XML files are text-based files, any text editor, including the built-in Notepad tool in Windows, will be able to properly display and edit the XML file's contents.The dedicated XML editors mentioned above are better for editing XML files because they understand the file's structure.
When an InfoSphere Information Server client application logs into a services tier for the first time, the application adds the services tier host name and port to the local registered-servers.xml file. This file contains the list of services tiers to be displayed as choices for subsequent client logins. Be default, administrators have write permission to the registered-servers.xml file.
The deletion of InstallationConfiguration.xml will fail if your Windows uses the NT File System (NTFS) and you have no write rights for the file. Request your system administrator to grant you write rights for the file.
Windows Template Library (WTL). A Simple Way to Write XML in .NET (XmlTextWriter). The XmlTextWriter class allows you to write XML to a file. This class contains a number of methods and properties that will do a lot of the work for you. To use this class, you create a new XmlTextWriter object. You then add the pieces of XML to the object.
Log file can be simple text file, XML document or we can also use tables in database to create log. Here I have used .txt file. In this file we have stored information about generated exception of application.
You must add an app.manifest file to your application. A manifest file, among other things, allows you to access Windows Vista restricted areas a little easier. Add an Application Manifest File from the Add New Item section in Visual Studio and you will end up with an XML file which looks like this.
Exporting Any Data Into Excel File Using Console Application. It is easy to imporrt the data from a gridview to an excel sheet. But when the data comes from a database or any datasource it becomes difficult for us to import them into the excel sheet.