摘要:
http://www.cnblogs.com/tonyqus/archive/2009/04/12/1434209.htmlhttp://tonyqus.sinaapp.com/archives/tag/npoi/page/4 阅读全文
posted @ 2012-07-07 11:34 oilsun 阅读(800) 评论(0) 推荐(0)
|
摘要:
http://www.cnblogs.com/tonyqus/archive/2009/04/12/1434209.htmlhttp://tonyqus.sinaapp.com/archives/tag/npoi/page/4 阅读全文
posted @ 2012-07-07 11:34 oilsun 阅读(800) 评论(0) 推荐(0)
摘要:
http://www.cnblogs.com/malin/archive/2010/03/04/1678352.htmlC#:XML操作类写的一个XML操作类,包括读取/插入/修改/删除。usingSystem;usingSystem.Data;usingSystem.Configuration;usingSystem.Web;usingSystem.Web.Security;usingSystem.Web.UI;usingSystem.Web.UI.WebControls;usingSystem.Web.UI.WebControls.WebParts;usingSystem.Web.UI.H 阅读全文
posted @ 2012-07-07 10:55 oilsun 阅读(232) 评论(0) 推荐(0)
摘要:
http://mcgtts.iteye.com/blog/798926首先,看下这个XmlHelper类库的结构,如下图:然后,在Vs中新建一个解决方案,叫做XMLHelper,添加一个C# 类库项目XMLHelper,重命名Class1.cs为XmlHelper.cs。再为XmlHelper.cs添加using System.Collections;using System.Xml;这两个引用保证了我们可以使用XML的大部分功能和哈希表.主要的代码如下:namespace XMLHelper{ public class XmlHelper { #region 公共变... 阅读全文
posted @ 2012-07-07 10:55 oilsun 阅读(568) 评论(0) 推荐(0)
摘要:
/*本地xml 转化为stream读取*/ string path=HttpContext.Current.Server.MapPath(@".\AdminConfig.xml"); Stream stream = new FileStream(path, FileMode.Open, FileAccess.Read, FileShare.Read); XmlTextReader reader = new XmlTextReader(stream); XmlDo... 阅读全文
posted @ 2012-07-07 10:54 oilsun 阅读(410) 评论(0) 推荐(0)
摘要:
XmlDocument excelData = new XmlDocument(); DataSet excelTableDataSet = new DataSet(); StreamReader excelContent = new StreamReader(excelFilePath, System.Text.Encoding.Default); string stringConnectToExcelFile = string.Format("provider=Microsoft.ACE.OLEDB.... 阅读全文
posted @ 2012-07-07 10:50 oilsun 阅读(2094) 评论(0) 推荐(0)
摘要:
XmlNode与XmlElement的区别总结今 天在做ASP.NET操作XML文档的过程中,发现了两个类:XmlNode和XmlElement。这两个类的功能极其类似(因为我们一般都是在对 Element节点进行操作)。上网搜罗了半天,千篇一律的答案。永远说不到重点,有些人回答又特别含糊,无奈之下,自己设断点尝试对比效果,现在总结如 下:1、通过继承关系XmlElement继承自XmlLinkedNode又继承自XmlNode类,由此可知XmlElement是XmlNode的子类。我们知道子类继承了父类所有的属性和方法,因此,XmlNode所拥有的方法和属性,在XmlElement类中也是可 阅读全文
posted @ 2012-07-07 10:47 oilsun 阅读(4193) 评论(1) 推荐(3) |
||