相关文章  
  • DataList和DataRepeater分页
  • Whidbey 初体验之局部类型 - partial 类型
  • C#实现阿拉伯数字转换成中文大写金额代码
  • XML 中的经典常见问题完全展播
  • 构建一个弹出式图象按钮
  • C#与Excel的交互功能代码实例
  • 用 C# 通过内码实现汉字转化为拼音
  • 如何用c#来制作一个activeX控件或类似的东西
  • DataGrid 中由某列的值设定行的颜色
  • 如何实现可以带详细表格的DropDownList
  •   推荐  
      科普之友首页   专利     科普      动物      植物        天文   考古   前沿科技
     您现在的位置在:  首页 >>文献 >>培训

    修改大型 XML 文件的有效方法展示6


      
      using System;
      using System.Xml;
      using System.IO;
      using System.Text;
      public class Test2{
       static string ipKey;
       static string httpMethodKey;
       static string fileKey;
       static string dateKey;
       static string referrerKey;
      
       public static void WriteAttributes(XmlReader reader, XmlWriter writer){
        
        if(reader.MoveToFirstAttribute()){
         do{
        writer.WriteAttributeString(reader.Prefix,
              reader.LocalName,
              reader.NamespaceURI,
              reader.Value);
         }while(reader.MoveToNextAttribute());
         reader.MoveToElement();
        }
       }
      
       public static void WriteEvent(XmlWriter writer, string ip,
                       string httpMethod, string file,
          

    页码:[1] [2] [3] [4] [5] [6] [7] [8]6页、共8页

         

          设为首页       |       加入收藏       |       广告服务       |       友情链接       |       版权申明      

    Copyriht 2007 - 2008 ©  科普之友 All right reserved