National Day holiday, after playing two days, I should learn something. A system made in the past days, using C #, uses SQL Server, now the program is to publish on the other machine, here the server name of SQL Server is involved, the machine changed the name, so I want to use XML Write a configuration file and write the name of the server when you install, you can read this configuration file when the program is running. . . So I started my C # reading and writing XML journey. . . The first is the format of XML, XML is similar to HTML, what is enclosed in <> and >, <> The name (name), the called value of <> and > set (Value), There is a hierarchy in this example: XML Version = "1.0" encoding = "UTF-8"?>