Xml
junelili
这个作者很懒,什么都没留下…
展开
-
关于XML解析的几个实用方法
1 获取XML文件的路径protected static String ServerRoot() ...{ return HttpContext.Current.Server.MapPath(HttpContext.Current.Request.ApplicationPath).TrimEnd(/); }2 将XML中的所有节点用一定规则将所有的节点原创 2007-09-25 10:19:00 · 285 阅读 · 0 评论 -
C# XML处理技术
在.net平台下,XML处理技术有几种方式,主要分为2部分,写XML和读XML。 1 写XML,.net framework提供XMLTextWriter类来操作,把数据写入一个XML文件,代码如下:static void WriteXMLbyXmlWriter(XmlWriter writer, string symbol, double price, double chang原创 2007-09-25 10:21:00 · 359 阅读 · 0 评论 -
xml1
using System;using System.Collections.Generic;using System.Text;using System.Xml;namespace XML{ /// /// 创建Xml模型 /// class MainClass { XmlDocument xmldoc; XmlNode xmlno原创 2007-10-10 15:48:00 · 291 阅读 · 0 评论