最新下载
热门教程
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
使用xmltextreader对xml进行简单的读取和写入操作
时间:2022-07-02 11:46:41 编辑:袖梨 来源:一聚教程网
使用xmltextreader对xml文件进行简单的以对象形式的读取和写入操作
BaseSerializeElement
-------------------------------------------------------------
using System;
using System.Xml;
using System.Collections;
namespace Local.Framework.Common
{
///
/// BaseXmlSerializer 的摘要说明。
/// --fallseir.li 20050427 15:12
///
public class BaseSerializeElement
{
public BaseSerializeElement()
{
}
public BaseSerializeElement(XmlReader reader,bool isroot)
{
this._isroot=isroot;
ReadXml(reader,isroot);
}
public BaseSerializeElement(XmlReader reader):this(reader,false){}
#region attributes
public bool IsRoot
{
get{return _isroot;}
}
private bool _isroot;
public string TAG
{
get{return _tag;}
}
private string _tag;
public string Value
{
get{return _value;}
}
BaseSerializeElement
-------------------------------------------------------------
using System;
using System.Xml;
using System.Collections;
namespace Local.Framework.Common
{
///
/// BaseXmlSerializer 的摘要说明。
/// --fallseir.li 20050427 15:12
///
public class BaseSerializeElement
{
public BaseSerializeElement()
{
}
public BaseSerializeElement(XmlReader reader,bool isroot)
{
this._isroot=isroot;
ReadXml(reader,isroot);
}
public BaseSerializeElement(XmlReader reader):this(reader,false){}
#region attributes
public bool IsRoot
{
get{return _isroot;}
}
private bool _isroot;
public string TAG
{
get{return _tag;}
}
private string _tag;
public string Value
{
get{return _value;}
}
相关文章
- Oracle数据库AWR报告的生成步骤与分析做法实用指南 09-01
- 动物餐厅白兔先生如何解锁-白兔先生解锁条件 09-01
- 了解后缀为ai的文件格式如何助力设计行业的效率提怎么操作-步骤和注意点 09-01
- 原神尘光七谕武器数值爆料! 09-01
- premiere如何制作创意标题 09-01
- Erlang中遍历取出某个位置的最大值代码实用指南 09-01