ToXml() 공개 메소드

public ToXml ( XmlDocument ownerDoc ) : XmlElement
ownerDoc XmlDocument
리턴 XmlElement
예제 #1
0
        private void SaveLog(InstallLog installLog)
        {
            XmlDocument logDoc = new XmlDocument();
            if (File.Exists(this.InstallLogFile))
                logDoc.Load(this.InstallLogFile);
            else
                logDoc.LoadXml(string.Format("<plugin name='{0}'></plugin>", this.Name));

            logDoc.DocumentElement.AppendChild(installLog.ToXml(logDoc));
            logDoc.Save(this.InstallLogFile);
        }