Computer/C#
XML ํฌ๋ฉง Element ์์ ๋ฐ ์์ฑ
public bool XmlDataCheck(string strfilepath, string ElementID, string Value) { XmlDocument Dxml = new XmlDocument(); Dxml.Load(strfilepath); try { // Modbus ํฌํธ๋ฒํธ XmlNode nodeModPort = Dxml.DocumentElement.SelectSingleNode("/profile/Preferences/" + ElementID); if (nodeModPort.Value != Value) { // ์์ nodeModPort.InnerText = Value; } Dxml.Save(strfilepath); return true; } catch(Exception e) { // ์์ฑ..