If one day forever

导航

獲取XML文檔節點的值

XmlTextReader reader = new XmlTextReader(System.Windows.Forms.Application.StartupPath + "\\ServerProperty.xml");

XmlDocument xml = new XmlDocument();

xml.Load(reader);

 

value = xml.SelectSingleNode("/ServerProperty/" + tab).InnerText.Trim();

 

//xml.SelectSingleNode(節點)

posted on 2010-03-26 11:23  谁啊器是  阅读(206)  评论(0编辑  收藏  举报