J
jon cosby
This code shows all values for the config node. I'm trying to retrieve
the value for systrayenabled for attrib "jon". Something wrong?
sXmlPath = Application.StartupPath.ToString() + "\\settings.xml";
XmlDocument xmlConfig = new XmlDocument();
xmlConfig.Load(sXmlPath);
XPathNavigator navigator = xmlConfig.CreateNavigator();
XPathNodeIterator iterator =
navigator.Select("timer/config[@user='jon']/systrayenabled");
MessageBox.Show(iterator.Current.Value);
the value for systrayenabled for attrib "jon". Something wrong?
sXmlPath = Application.StartupPath.ToString() + "\\settings.xml";
XmlDocument xmlConfig = new XmlDocument();
xmlConfig.Load(sXmlPath);
XPathNavigator navigator = xmlConfig.CreateNavigator();
XPathNodeIterator iterator =
navigator.Select("timer/config[@user='jon']/systrayenabled");
MessageBox.Show(iterator.Current.Value);