SSHH网络工作室

2009年12月8日

Model与XML互相转换

摘要: #region Model与XML互相转换 //// <summary> /// Model转化为XML的方法 /// </summary> /// <param name="model">要转化的Model</param> /// <returns></returns> public static string ModelT... 阅读全文

posted @ 2009-12-08 16:40 山虎 阅读(467) 评论(0) 推荐(0) 编辑

c#操作xml和webservice

摘要: 1.获取xml文档根节点的文本http://hi.baidu.com/xuejianxiyang/album/item/8559df1211f0ef7ff919b82d.html2.创建元素(节点),属性,并给属性赋值http://hi.baidu.com/xuejianxiyang/album/item/8559df1211f0ef7ff919b82d.html#IMG=75c0db6d9b17... 阅读全文

posted @ 2009-12-08 16:39 山虎 阅读(589) 评论(0) 推荐(0) 编辑

XML操作类--转

摘要: 写的一个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... 阅读全文

posted @ 2009-12-08 16:38 山虎 阅读(197) 评论(0) 推荐(0) 编辑

C#操作XML

摘要: 一、简单介绍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... 阅读全文

posted @ 2009-12-08 16:37 山虎 阅读(215) 评论(0) 推荐(0) 编辑

导航