zoukankan      html  css  js  c++  java
  • Asp.Net XML操作基类(修改,删除,新增,创建)

    文章内容来自  http://www.opent.cn  作者:浪淘沙

    **********************************************************************************
     
    * 
     
    * 功能说明:XML处理基类
     
    * 作者: 刘功勋;
     
    * 版本:V0.1(C#2.0);时间:2006-12-13
     
    * 
     
    * *******************************************************************************/
    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.WebControls.WebParts;
    using System.Web.UI.HtmlControls;
    using System.IO;
    using System.Xml;
    using System.Text;
    using MSXML2;


    namespace EC
    {
        
    /// <summary>
        
    /// XML 操作基类
        
    /// </summary>

        public class XmlObject : IDisposable
        
    {      
           
              

            
            
    //以下为单一功能的静态类
            
            
    读取XML到DataSet

            
    读取xml文档并返回一个节点

            
    查找数据,返回一个DataSet

            
    更新Xml节点内容

            
    删除XML节点和此节点下的子节点

            
    插入一个节点和此节点的字节点

            
    插入一节点,带一属性

            
    插入一节点不带属性
           

            
    //必须创建对象才能使用的类

            
    private bool _alreadyDispose = false;
            
    private string xmlPath; 
            
    private XmlDocument xmlDoc=new XmlDocument();   

            
    private XmlNode xmlNode;
            
    private XmlElement xmlElem;    

            
    构造与释构

            
    IDisposable 成员

            
    创建xml文档

        }

    }

  • 相关阅读:
    函数、包和错误处理
    程序流程控制
    poj 2515 Birthday Cake
    poj 2094 多项式求和。
    hdu 3625 第一类striling 数
    hdu 4372 第一类stirling数的应用/。。。好题
    poj 1845 Sumdiv
    hdu 3641 Treasure Hunting 强大的二分
    poj 3335 /poj 3130/ poj 1474 半平面交 判断核是否存在 / poj1279 半平面交 求核的面积
    hdu 2841 Visible Trees
  • 原文地址:https://www.cnblogs.com/sunfeiwto/p/1334894.html
Copyright © 2011-2022 走看看