随笔分类 - XML
摘要:今天有个需求需要操作xml节点.突然见遗忘了许多.上网看了些资料.才整出来.脑袋真不够用.在这里把我找到的资料共享一下.方便以后使用.本文属于网摘/ 一、简单介绍 using System.Xml; //初始化一个xml实例 XmlDocument xml=new XmlDocument(); //导入指定xml文件 xml.Load(path); xml.Load(HttpContext.Cu...
阅读全文
摘要:已知有一个XML文件(bookshop.xml)如下: 下面看看是怎样读写xml文件的: using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Xml; n
阅读全文