读取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);
}
xmlDocument.Load(Path.Combine(HttpContext.Current.Request.PhysicalApplicationPath,"web.config"));
XmlNode node = xmlDocument.SelectSingleNode("");
if (node!= null)
{
m_MaxLength = Convert.ToInt32(node.Value);
}
相关文章推荐
- .net中读取xml文件中节点的所有属性信息
- 创建xml文件,添加节点,读取xml文件中某属性的属性值
- Domj4读取XML文件--实现获取XML文件中所有的标签节点
- Dom4j解析xml文件-操作节点和属性及写入其他xml文件
- 读取xml文件内容_计算节点数量
- XML修改节点属性及写入文件
- testng.xml文件结构组成及节点属性说明
- 遍历有属性节点的XML文件
- Spring —— web.xml 中用 PropertyPlaceholderConfigurer 类读取properties 文件 或 属性
- vb.net读取xml文件中的节点内容
- flash读取XML节点内容以及节点属性
- Unity3D 读取XML文件里面的属性
- 【个人学习笔记】xml 文件的属性读取
- 使用DOM生成XML的文件属性名和属性值、节点名和节点值
- XML参考 :XmlReader 详解、实例(3)-- 读取XML节点和属性名称
- 在 *.hbm.xml 配置文件 中 节点 的 class 属性
- 利用LIBXML库遍历读取XML文件所有的属性和content
- Java使用DOM解析XML的文件属性名和属性值、节点名和节点值
- js生成xml文件及js读取xml文件,获得xml节点子节点的个数(同Extjs中树获得子结点个数)
- RapidXml 读取文件并遍历节点的所有属性