public void LoadConfig(string config) { XmlDocument document = new XmlDocument(); document.Load(config); XmlNode root = document.SelectSingleNode("Include"); XmlNode infoNode = root.SelectSingleNode("Info"); m_ServiceInfo.LoadConfig(infoNode); XmlNode configNode = root.SelectSingleNode("Config"); }
public void LoadConfig(string config) { XmlDocument document = new XmlDocument(); document.Load(config); XmlNode root = document.SelectSingleNode("Include"); XmlNode infoNode = root.SelectSingleNode("Info"); m_ServiceInfo.LoadConfig(infoNode); XmlNode configNode = root.SelectSingleNode("Config"); LogLevel = XmlUtil.ExtractNumeric <int>(configNode, "LogLevel", 0, true); }