您的位置:首页 > 其它

读取XML文件中的某个节点的某个属性

2009-09-12 18:17 302 查看
XmlDocument xmlDocument = new XmlDocument();
xmlDocument.Load(Path.Combine(HttpContext.Current.Request.PhysicalApplicationPath,"web.config"));
XmlNode node = xmlDocument.SelectSingleNode("");
if (node!= null)
{
m_MaxLength = Convert.ToInt32(node.Value);
}
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: