jjzjj

licenseNode

全部标签

c# - XmlDocument 保存使文件保持打开状态

我有一个简单的c#函数,它创建一个基本的XML文件并保存:privatevoidCreateXMlFile(stringFilename,stringName,stringCompany){XmlDocumentdoc=newXmlDocument();XmlNodedocNode=doc.CreateXmlDeclaration("1.0","UTF-8",null);doc.AppendChild(docNode);XmlNodelicenseNode=doc.CreateElement("license");doc.AppendChild(licenseNode);XmlNode