摘要:#region Model与XML互相转换 //// <summary> /// Model转化为XML的方法 /// </summary> /// <param name="model">要转化的Model</param> /// <returns></returns> public static string ModelT...
阅读全文
摘要:1.获取xml文档根节点的文本http://hi.baidu.com/xuejianxiyang/album/item/8559df1211f0ef7ff919b82d.html2.创建元素(节点),属性,并给属性赋值http://hi.baidu.com/xuejianxiyang/album/item/8559df1211f0ef7ff919b82d.html#IMG=75c0db6d9b17...
阅读全文
摘要:写的一个XML操作类,包括读取/插入/修改/删除。using System;using System.Data;using System.Configuration;using System.Web;using System.Web.Security;using System.Web.UI;using System.Web.UI.WebControls;using System.Web.UI.We...
阅读全文
摘要:一、简单介绍using System.Xml;//初始化一个xml实例XmlDocument xml=new XmlDocument();//导入指定xml文件xml.Load(path);xml.Load(HttpContext.Current.Server.MapPath("~/file/bookstore.xml"));//指定一个节点XmlNode root=xml.SelectSingl...
阅读全文