随笔分类 -  XML

摘要:项目中需要将前台页面中的信息保存下来并存储为xml文件格式到数据库中去。因此我先在这里通过一个小实例来学习xml的创建与读取。本文部分参考http://blog.csdn.net/lengjing126/archive/2009/08/12/4438042.aspx1.创建简单的XML文件为了便于测试,我们首先创建控制台应用程序,项目命名为CreateXml,Program.cs代码如下:View Code 1 using System; 2 using System.Collections.Generic; 3 using System.Linq; 4 using System.Text;. 阅读全文
posted @ 2013-03-07 14:59 银河系上的地球 阅读(304) 评论(0) 推荐(0)
摘要:View Code 1 01.class Program 2 02. { 3 03. static void Main(string[] args) 4 04. { 5 05. XMLOperation xmlOpr = new XMLOperation(); 6 06. XmlNode xn=xmlOpr.getXmlNode("activity.xml", "2"); 7 07. string ActivityId = (xn.SelectSingleNode("Activit... 阅读全文
posted @ 2013-03-07 14:49 银河系上的地球 阅读(889) 评论(0) 推荐(0)